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
|
2020-12-09 11:54:16 +00:00
|
|
|
mem_limit: 512M
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-16 18:55:55 +00:00
|
|
|
dominant:
|
2021-10-22 13:02:13 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/dominant:2f02d79d15db352c14359024dfcf082a51a1b17a
|
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
|
|
|
|
2016-06-29 13:58:48 +00:00
|
|
|
machinegun:
|
2021-08-24 15:39:33 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/machinegun:627130675ad6e7ee2127126740fe369542905b4b
|
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
|
2019-12-16 16:57:26 +00:00
|
|
|
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
|
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
|
|
|
|
2021-06-23 11:08:28 +00:00
|
|
|
limiter:
|
2021-08-05 15:02:44 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/limiter:c7e96068a56da444e78cc7739a902da8e268dc63
|
2021-06-23 11:08:28 +00:00
|
|
|
command: /opt/limiter/bin/limiter foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2016-10-12 12:44:21 +00:00
|
|
|
shumway:
|
2020-12-09 14:36:14 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/shumway:658c9aec229b5a70d745a49cb938bb1a132b5ca2
|
2019-08-06 10:24:20 +00:00
|
|
|
restart: unless-stopped
|
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
|
2019-10-15 10:17:42 +00:00
|
|
|
- --management.metrics.export.statsd.enabled=false
|
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
|
|
|
|
2021-07-26 09:59:34 +00:00
|
|
|
party-management:
|
2021-10-22 13:02:13 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/party-management:2066fff761c63a6c54a1c4825b31de81ff79e815
|
2021-07-26 09:59:34 +00:00
|
|
|
command: /opt/party-management/bin/party-management foreground
|
|
|
|
depends_on:
|
|
|
|
- machinegun
|
|
|
|
- dominant
|
|
|
|
- shumway
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
|
|
|
|
2016-12-08 16:18:32 +00:00
|
|
|
shumway-db:
|
2020-02-14 12:12:35 +00:00
|
|
|
image: dr2.rbkmoney.com/rbkmoney/postgres:9.6
|
2016-10-12 12:44:21 +00:00
|
|
|
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
|