machinery-erlang/compose.yaml

30 lines
755 B
YAML
Raw Permalink Normal View History

services:
2022-05-13 08:38:22 +00:00
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
2022-05-13 08:38:22 +00:00
hostname: $SERVICE_NAME
depends_on:
machinegun:
condition: service_healthy
2022-05-13 08:38:22 +00:00
working_dir: $PWD
command: /sbin/init
machinegun:
image: ghcr.io/valitydev/machinegun:sha-00fe6d6
command: /opt/machinegun/bin/machinegun foreground
volumes:
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
healthcheck:
2022-05-13 08:38:22 +00:00
test: "/opt/machinegun/bin/machinegun ping"
interval: 5s
timeout: 1s
retries: 20