2022-04-18 08:00:48 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
|
|
|
|
testrunner:
|
|
|
|
image: $DEV_IMAGE_TAG
|
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OTP_VERSION: $OTP_VERSION
|
|
|
|
THRIFT_VERSION: $THRIFT_VERSION
|
|
|
|
volumes:
|
|
|
|
- .:$PWD
|
|
|
|
hostname: $SERVICE_NAME
|
|
|
|
working_dir: $PWD
|
|
|
|
command: /sbin/init
|
|
|
|
depends_on:
|
2023-03-01 15:33:36 +00:00
|
|
|
dominant:
|
|
|
|
condition: service_healthy
|
2022-04-18 08:00:48 +00:00
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
shumway:
|
|
|
|
condition: service_healthy
|
|
|
|
|
2023-03-01 15:33:36 +00:00
|
|
|
dominant:
|
2023-10-24 11:50:19 +00:00
|
|
|
image: ghcr.io/valitydev/dominant:sha-2150eea
|
2023-03-01 15:33:36 +00:00
|
|
|
command: /opt/dominant/bin/dominant foreground
|
|
|
|
depends_on:
|
|
|
|
machinegun:
|
|
|
|
condition: service_healthy
|
|
|
|
healthcheck:
|
|
|
|
test: "/opt/dominant/bin/dominant ping"
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
|
2022-04-18 08:00:48 +00:00
|
|
|
machinegun:
|
2023-10-24 11:50:19 +00:00
|
|
|
image: ghcr.io/valitydev/machinegun:sha-5c0db56
|
|
|
|
command: /opt/machinegun/bin/machinegun foreground
|
2022-04-18 08:00:48 +00:00
|
|
|
volumes:
|
|
|
|
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
|
|
|
|
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
|
|
|
|
healthcheck:
|
|
|
|
test: "/opt/machinegun/bin/machinegun ping"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
shumway:
|
|
|
|
image: docker.io/rbkmoney/shumway:44eb989065b27be619acd16b12ebdb2288b46c36
|
|
|
|
restart: unless-stopped
|
|
|
|
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
|
|
|
|
- --management.metrics.export.statsd.enabled=false
|
|
|
|
depends_on:
|
|
|
|
- shumway-db
|
|
|
|
healthcheck:
|
|
|
|
test: "curl http://localhost:8022/actuator/health"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
shumway-db:
|
|
|
|
image: docker.io/library/postgres:9.6
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=shumway
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|