2016-08-08 18:16:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
2017-02-01 18:44:07 +00:00
|
|
|
version: '2.1'
|
2016-06-29 13:58:48 +00:00
|
|
|
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:
|
2017-02-01 18:44:07 +00:00
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
|
|
|
condition: service_healthy
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-16 18:55:55 +00:00
|
|
|
dominant:
|
2019-05-31 09:03:58 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/dominant:48fb4cd638ebb4937a48a03f9433077891f442eb
|
2016-10-20 10:51:35 +00:00
|
|
|
command: /opt/dominant/bin/dominant foreground
|
2016-10-16 18:55:55 +00:00
|
|
|
depends_on:
|
2017-02-01 18:44:07 +00:00
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
2016-10-16 18:55:55 +00:00
|
|
|
|
2018-03-06 15:05:18 +00:00
|
|
|
sequences:
|
|
|
|
image: dr.rbkmoney.com/rbkmoney/sequences:727c81115f861dc3d9b80c0e06e64d27728d447f
|
|
|
|
command: /opt/sequences/bin/sequences foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2016-06-29 13:58:48 +00:00
|
|
|
machinegun:
|
2019-05-20 11:59:29 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:aec434f47029dbd81762e10de04c9422e3c93e5e
|
2016-10-14 17:27:22 +00:00
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
2016-08-25 15:41:23 +00:00
|
|
|
volumes:
|
2017-07-26 14:50:32 +00:00
|
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
2017-02-01 18:44:07 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2018-01-24 13:40:54 +00:00
|
|
|
retries: 20
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-12 12:44:21 +00:00
|
|
|
shumway:
|
2017-09-12 11:12:44 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/shumway:7a5f95ee1e8baa42fdee9c08cc0ae96cd7187d55
|
2016-12-08 16:18:32 +00:00
|
|
|
restart: always
|
2017-02-01 18:44:07 +00:00
|
|
|
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
|
2016-10-12 12:44:21 +00:00
|
|
|
depends_on:
|
2016-12-08 16:18:32 +00:00
|
|
|
- shumway-db
|
2017-02-01 18:44:07 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
2018-01-24 13:40:54 +00:00
|
|
|
retries: 20
|
2017-02-01 18:44:07 +00:00
|
|
|
|
2016-12-08 16:18:32 +00:00
|
|
|
shumway-db:
|
2016-10-12 12:44:21 +00:00
|
|
|
image: dr.rbkmoney.com/rbkmoney/postgres:9.6
|
|
|
|
environment:
|
2016-12-08 16:18:32 +00:00
|
|
|
- POSTGRES_DB=shumway
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SERVICE_NAME=shumway-db
|
2016-08-08 18:16:17 +00:00
|
|
|
EOF
|
|
|
|
|