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
|
2016-12-07 12:39:10 +00:00
|
|
|
- kk
|
2016-10-17 15:05:06 +00:00
|
|
|
environment:
|
|
|
|
- SERVICE_NAME=capi
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
hellgate:
|
2016-10-26 13:39:32 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/hellgate:ef9864b17f88d98a2b851a7cc090c3cfc4c19d4b
|
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
|
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
cds:
|
2016-10-26 13:39:32 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/cds:538659226317356bc42529299037fe6cfa651694
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
|
|
|
command: /opt/cds/bin/cds foreground
|
|
|
|
|
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-10-21 10:35:43 +00:00
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
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
|
|
|
|
2016-09-05 12:21:44 +00:00
|
|
|
magista:
|
2016-10-21 10:35:43 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/magista:bf7c71a9e8d7c25c901894d5fe705dc0f2efbdaa
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
2016-09-05 12:21:44 +00:00
|
|
|
command: |
|
2016-10-17 15:05:06 +00:00
|
|
|
-Xmx512m
|
2016-10-21 10:35:43 +00:00
|
|
|
-jar /opt/magista/magista.jar
|
2016-10-17 15:05:06 +00:00
|
|
|
--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-21 10:35:43 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/bustermaze:c50c584f3f2fcc6edb226712b2d241e237121ead
|
2016-10-17 15:05:06 +00:00
|
|
|
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-10-21 10:35:43 +00:00
|
|
|
--flyway.url=jdbc:postgresql://bustermaze-db:5432/bustermaze
|
|
|
|
--flyway.user=postgres
|
|
|
|
--flyway.password=postgres
|
|
|
|
--flyway.schemas=bm
|
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-26 13:39:32 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/dominant:9e6db27120f970707b77aa492fb218eb1bd40055
|
2016-10-17 15:05:06 +00:00
|
|
|
restart: always
|
|
|
|
command: /opt/dominant/bin/dominant foreground
|
|
|
|
depends_on:
|
|
|
|
- machinegun
|
|
|
|
|
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
|
2016-12-07 12:39:10 +00:00
|
|
|
|
|
|
|
kk:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/keycloak:1a4a81d7e3ac1bff2d41f7bed57b6619dbd92a11
|
|
|
|
container_name: keycloak
|
|
|
|
ports:
|
|
|
|
- "31245:8080"
|
|
|
|
environment:
|
|
|
|
SERVICE_NAME: keycloak
|
|
|
|
POSTGRES_PASSWORD: keycloak
|
|
|
|
POSTGRES_USER: keycloak
|
|
|
|
POSTGRES_DATABASE: keycloak
|
|
|
|
POSTGRES_PORT_5432_TCP_ADDR: kk_db
|
|
|
|
depends_on:
|
|
|
|
- kk_db
|
|
|
|
|
|
|
|
kk_db:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
container_name: keycloak_postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: keycloak
|
|
|
|
POSTGRES_USER: keycloak
|
|
|
|
POSTGRES_DATABASE: keycloak
|
2016-09-05 12:21:44 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.enable_ipv6: "true"
|
|
|
|
com.docker.network.bridge.enable_ip_masquerade: "false"
|
|
|
|
EOF
|