2018-08-13 16:49:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
${SERVICE_NAME}:
|
|
|
|
image: ${BUILD_IMAGE}
|
|
|
|
volumes:
|
|
|
|
- .:$PWD
|
|
|
|
- $HOME/.cache:/home/$UNAME/.cache
|
|
|
|
working_dir: $PWD
|
|
|
|
command: /sbin/init
|
|
|
|
depends_on:
|
2018-08-31 12:43:12 +00:00
|
|
|
hellgate:
|
2018-08-13 16:49:31 +00:00
|
|
|
condition: service_healthy
|
2018-08-31 12:43:12 +00:00
|
|
|
|
2018-08-13 16:49:31 +00:00
|
|
|
dominant:
|
2020-08-25 15:59:53 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/dominant:1dbb330957077d3fbd93bd93d78d138634b0a2a7
|
2018-08-13 16:49:31 +00:00
|
|
|
command: /opt/dominant/bin/dominant foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 12
|
2018-08-31 12:43:12 +00:00
|
|
|
|
|
|
|
hellgate:
|
2020-08-25 15:59:53 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/hellgate:8660b4d533a59e6bd394219991e3d1dd2bb2b54c
|
2018-08-31 12:43:12 +00:00
|
|
|
command: /opt/hellgate/bin/hellgate foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
dominant:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
|
|
|
condition: service_healthy
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 12
|
|
|
|
|
2018-08-13 16:49:31 +00:00
|
|
|
machinegun:
|
2019-10-04 12:06:46 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:00aa3098226e103a1a3626b3edf63864b94c4036
|
2018-08-13 16:49:31 +00:00
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 12
|
2018-08-31 12:43:12 +00:00
|
|
|
|
|
|
|
shumway:
|
2020-05-25 11:47:37 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/shumway:058b2459317d1bff0922574e8e8240432c2444cd
|
2018-08-31 12:43:12 +00:00
|
|
|
restart: always
|
|
|
|
entrypoint:
|
|
|
|
- java
|
|
|
|
- -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
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
shumway-db:
|
2019-10-04 12:06:46 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
|
2018-08-31 12:43:12 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=shumway
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=shumway-db
|
2018-08-13 16:49:31 +00:00
|
|
|
EOF
|