limiter/compose.yaml
2023-10-24 14:50:19 +03:00

75 lines
1.9 KiB
YAML

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:
dominant:
condition: service_healthy
machinegun:
condition: service_healthy
shumway:
condition: service_healthy
dominant:
image: ghcr.io/valitydev/dominant:sha-2150eea
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
machinegun:
image: ghcr.io/valitydev/machinegun:sha-5c0db56
command: /opt/machinegun/bin/machinegun foreground
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