2016-06-29 13:58:48 +00:00
|
|
|
services:
|
2022-02-09 15:21:50 +00:00
|
|
|
testrunner:
|
|
|
|
image: $DEV_IMAGE_TAG
|
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OTP_VERSION: $OTP_VERSION
|
|
|
|
THRIFT_VERSION: $THRIFT_VERSION
|
2016-06-29 13:58:48 +00:00
|
|
|
volumes:
|
2016-08-12 17:33:39 +00:00
|
|
|
- .:$PWD
|
2022-02-09 15:21:50 +00:00
|
|
|
hostname: hellgate
|
2016-08-08 18:16:17 +00:00
|
|
|
depends_on:
|
2022-02-09 15:21:50 +00:00
|
|
|
# FIXME: Switch all service_started to service_healthy when its possible to debug its problems
|
2017-02-01 18:44:07 +00:00
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
dominant:
|
2022-02-10 14:17:56 +00:00
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
party-management:
|
2022-02-10 14:17:56 +00:00
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
limiter:
|
2017-02-01 18:44:07 +00:00
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
shumway:
|
2022-02-24 08:23:24 +00:00
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
working_dir: $PWD
|
|
|
|
command: /sbin/init
|
2016-10-10 16:05:28 +00:00
|
|
|
|
2016-10-16 18:55:55 +00:00
|
|
|
dominant:
|
2022-02-24 08:23:24 +00:00
|
|
|
image: ghcr.io/valitydev/dominant:sha-0b47590
|
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
|
2022-02-09 15:21:50 +00:00
|
|
|
healthcheck:
|
2022-02-10 14:17:56 +00:00
|
|
|
test: "/opt/dominant/bin/dominant ping"
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
2016-10-16 18:55:55 +00:00
|
|
|
|
2016-06-29 13:58:48 +00:00
|
|
|
machinegun:
|
2022-02-09 15:21:50 +00:00
|
|
|
image: docker.io/rbkmoney/machinegun:c05a8c18cd4f7966d70b6ad84cac9429cdfe37ae
|
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:
|
2022-02-09 15:21:50 +00:00
|
|
|
image: docker.io/rbkmoney/limiter:c7e96068a56da444e78cc7739a902da8e268dc63
|
2021-06-23 11:08:28 +00:00
|
|
|
command: /opt/limiter/bin/limiter foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
2022-02-24 08:23:24 +00:00
|
|
|
condition: service_healthy
|
2022-02-09 15:21:50 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
2021-06-23 11:08:28 +00:00
|
|
|
|
2016-10-12 12:44:21 +00:00
|
|
|
shumway:
|
2022-02-09 15:21:50 +00:00
|
|
|
image: docker.io/rbkmoney/shumway:44eb989065b27be619acd16b12ebdb2288b46c36
|
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:
|
2022-02-09 15:21:50 +00:00
|
|
|
shumway-db:
|
|
|
|
condition: service_healthy
|
2017-02-01 18:44:07 +00:00
|
|
|
healthcheck:
|
2022-02-24 08:23:24 +00:00
|
|
|
test: "curl http://localhost:8023/actuator/health"
|
2017-02-01 18:44:07 +00:00
|
|
|
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:
|
2022-02-24 08:23:24 +00:00
|
|
|
image: ghcr.io/valitydev/party-management:sha-e456e24
|
2021-07-26 09:59:34 +00:00
|
|
|
command: /opt/party-management/bin/party-management foreground
|
|
|
|
depends_on:
|
2022-02-09 15:21:50 +00:00
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
dominant:
|
|
|
|
condition: service_started
|
|
|
|
shumway:
|
2022-02-24 08:23:24 +00:00
|
|
|
condition: service_healthy
|
2021-07-26 09:59:34 +00:00
|
|
|
healthcheck:
|
2022-02-10 14:17:56 +00:00
|
|
|
test: "/opt/party-management/bin/party-management ping"
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
2021-07-26 09:59:34 +00:00
|
|
|
|
2016-12-08 16:18:32 +00:00
|
|
|
shumway-db:
|
2022-02-09 15:21:50 +00:00
|
|
|
image: docker.io/library/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
|
2022-02-09 15:21:50 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|