2016-08-08 18:16:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
2016-06-29 13:58:48 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-08-08 18:16:17 +00:00
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
2016-06-29 13:58:48 +00:00
|
|
|
volumes:
|
2016-08-12 17:33:39 +00:00
|
|
|
- .:$PWD
|
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: $PWD
|
2016-06-29 13:58:48 +00:00
|
|
|
command: /sbin/init
|
2016-08-08 18:16:17 +00:00
|
|
|
depends_on:
|
2016-06-29 13:58:48 +00:00
|
|
|
- machinegun
|
2016-10-12 12:44:21 +00:00
|
|
|
- shumway
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-16 18:55:55 +00:00
|
|
|
dominant:
|
2016-10-20 10:51:35 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/dominant:f3c72168d9dfeb4da241d4eb5d6a29787c81faef
|
|
|
|
command: /opt/dominant/bin/dominant foreground
|
2016-10-16 18:55:55 +00:00
|
|
|
depends_on:
|
|
|
|
- machinegun
|
|
|
|
|
2016-06-29 13:58:48 +00:00
|
|
|
machinegun:
|
2016-10-14 17:27:22 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/machinegun:a48f9e93dd5a709d5f14db0c9785d43039282e86
|
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
2016-08-25 15:41:23 +00:00
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/sys.config:/opt/machinegun/releases/0.1.0/sys.config
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-12 12:44:21 +00:00
|
|
|
shumway:
|
2016-10-23 14:57:22 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/shumway:cd00af9d70b28a7851295fca39bdeded5a3606b0
|
2016-10-12 12:44:21 +00:00
|
|
|
entrypoint: |
|
|
|
|
java
|
|
|
|
-Xmx512m
|
|
|
|
-jar
|
2016-10-23 14:57:22 +00:00
|
|
|
/opt/shumway/shumway.jar
|
2016-10-12 12:44:21 +00:00
|
|
|
command: |
|
|
|
|
--spring.datasource.url=jdbc:postgresql://shumway_psql:5432/shumway
|
|
|
|
--spring.datasource.username=shumway
|
|
|
|
--spring.datasource.password=shumway
|
|
|
|
depends_on:
|
|
|
|
- shumway_psql
|
2016-10-20 10:51:35 +00:00
|
|
|
restart: always
|
|
|
|
|
2016-10-12 12:44:21 +00:00
|
|
|
shumway_psql:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DATABASE=shumway
|
|
|
|
- POSTGRES_USER=shumway
|
|
|
|
- POSTGRES_PASSWORD=shumway
|
|
|
|
|
2016-07-15 12:58:11 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.enable_ipv6: "true"
|
2016-07-15 13:21:30 +00:00
|
|
|
com.docker.network.bridge.enable_ip_masquerade: "false"
|
2016-08-08 18:16:17 +00:00
|
|
|
EOF
|
|
|
|
|