api-key-mgmt-v2/compose.yaml
ttt161 9c3e1f3968
TD-651: add secret and template (#10)
* TD-651: update template rendering

* TD-651: add vault client

* TD-651: delete vault client

* TD-651: cleanup

---------

Co-authored-by: anatoliy.losev <losto@nix>
2023-07-28 10:49:37 +03:00

62 lines
1.5 KiB
YAML

services:
testrunner:
image: $DEV_IMAGE_TAG
environment:
WORK_DIR: $PWD
POSTGRES_HOST: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: apikeymgmtv2
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: akm
depends_on:
db:
condition: service_healthy
working_dir: $PWD
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: apikeymgmtv2
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
token-keeper:
image: ghcr.io/valitydev/token-keeper:sha-42d4a27
command: /opt/token-keeper/bin/token-keeper foreground
depends_on:
machinegun:
condition: service_healthy
healthcheck:
test: "/opt/token-keeper/bin/token-keeper ping"
interval: 10s
timeout: 5s
retries: 10
machinegun:
image: ghcr.io/valitydev/machinegun:sha-058bada
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: 20