2016-09-05 12:21:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
version: '2'
|
|
|
|
services:
|
2016-10-17 15:05:06 +00:00
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
2016-09-05 12:21:44 +00:00
|
|
|
volumes:
|
|
|
|
- .:/$PWD
|
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: /$PWD
|
|
|
|
command: /sbin/init
|
|
|
|
depends_on:
|
|
|
|
- hellgate
|
|
|
|
- cds
|
|
|
|
- magista
|
|
|
|
- starter
|
2016-10-17 15:05:06 +00:00
|
|
|
- dominant
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=capi
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
hellgate:
|
2016-10-19 17:25:16 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/hellgate:746b2c8f6d5b51397c19c89a557de34287139ec0
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
|
|
|
command: /opt/hellgate/bin/hellgate foreground
|
2016-09-05 12:21:44 +00:00
|
|
|
depends_on:
|
|
|
|
- machinegun
|
2016-10-17 15:05:06 +00:00
|
|
|
- shumway
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=hellgate
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
cds:
|
2016-10-19 17:25:16 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/cds:dbbf05f7bcdb39a85ca12d290aeecea1bada89d1
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
|
|
|
command: /opt/cds/bin/cds foreground
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=cds
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
machinegun:
|
2016-10-17 15:05:06 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/machinegun:a48f9e93dd5a709d5f14db0c9785d43039282e86
|
|
|
|
restart: always
|
2016-09-22 22:49:24 +00:00
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/sys.config:/opt/machinegun/releases/0.1.0/sys.config
|
2016-10-17 15:05:06 +00:00
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=machinegun
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
magista:
|
2016-10-17 15:05:06 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/magista:b18a1b11388238775d9bc330b9b89bc425ca735d
|
|
|
|
restart: always
|
2016-09-05 12:21:44 +00:00
|
|
|
command: |
|
2016-10-17 15:05:06 +00:00
|
|
|
java
|
|
|
|
-Xmx512m
|
|
|
|
-jar /opt/magista/magista-1.0.4.jar
|
|
|
|
--db.jdbc.url=jdbc:postgresql://magista-db:5432/magista
|
|
|
|
--db.username=postgres
|
|
|
|
--db.password=postgres
|
|
|
|
--bm.pooling.url=http://bustermaze:8022/repo
|
2016-09-05 12:21:44 +00:00
|
|
|
depends_on:
|
2016-10-17 15:05:06 +00:00
|
|
|
- magista-db
|
2016-09-05 12:21:44 +00:00
|
|
|
- bustermaze
|
2016-10-17 15:05:06 +00:00
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=magista
|
|
|
|
|
|
|
|
magista-db:
|
2016-09-05 12:21:44 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
environment:
|
2016-10-17 15:05:06 +00:00
|
|
|
- POSTGRES_DB=magista
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=magista-db
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
bustermaze:
|
2016-10-17 15:05:06 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/bustermaze:dd60a565671e34ff743218e6cb52f07e5ce632ea
|
|
|
|
restart: always
|
2016-09-05 12:21:44 +00:00
|
|
|
command: |
|
2016-10-17 15:05:06 +00:00
|
|
|
-Xmx512m
|
|
|
|
-jar /opt/bustermaze/bustermaze.jar
|
|
|
|
--spring.datasource.url=jdbc:postgresql://bustermaze-db:5432/bustermaze
|
|
|
|
--spring.datasource.username=postgres
|
|
|
|
--spring.datasource.password=postgres
|
|
|
|
--hg.pooling.url=http://hellgate:8022/v1/processing/eventsink
|
2016-09-05 12:21:44 +00:00
|
|
|
depends_on:
|
|
|
|
- hellgate
|
2016-10-17 15:05:06 +00:00
|
|
|
- bustermaze-db
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=bustermaze
|
|
|
|
|
|
|
|
bustermaze-db:
|
2016-09-05 12:21:44 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
environment:
|
2016-10-17 15:05:06 +00:00
|
|
|
- POSTGRES_DB=bustermaze
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=bustermaze-db
|
|
|
|
|
|
|
|
shumway:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/shumway:cd00af9d70b28a7851295fca39bdeded5a3606b0
|
|
|
|
restart: always
|
|
|
|
command: |
|
|
|
|
-Xmx512m
|
|
|
|
-jar /opt/shumway/shumway.jar
|
|
|
|
--spring.datasource.url=jdbc:postgresql://shumway-db:5432/shumway
|
|
|
|
--spring.datasource.username=postgres
|
|
|
|
--spring.datasource.password=postgres
|
|
|
|
depends_on:
|
|
|
|
- shumway-db
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=shumway
|
|
|
|
|
|
|
|
shumway-db:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=shumway
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=shumway-db
|
|
|
|
|
|
|
|
dominant:
|
2016-10-19 17:25:16 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/dominant:f3c72168d9dfeb4da241d4eb5d6a29787c81faef
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
|
|
|
command: /opt/dominant/bin/dominant foreground
|
|
|
|
depends_on:
|
|
|
|
- machinegun
|
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=dominant
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
starter:
|
|
|
|
image: ${BUILD_IMAGE}
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
environment:
|
|
|
|
- CDS_HOST=cds
|
|
|
|
- SCHEMA_DIR=/code/apps/cp_proto/damsel/proto
|
|
|
|
command:
|
|
|
|
/code/script/cds_test_init
|
|
|
|
depends_on:
|
|
|
|
- cds
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.enable_ipv6: "true"
|
|
|
|
com.docker.network.bridge.enable_ip_masquerade: "false"
|
|
|
|
EOF
|