2024-10-17 22:37:46 +00:00
|
|
|
services:
|
|
|
|
testrunner:
|
|
|
|
image: $DEV_IMAGE_TAG
|
|
|
|
environment:
|
|
|
|
WORK_DIR: $PWD
|
|
|
|
POSTGRES_HOST: db
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2024-11-01 22:34:09 +00:00
|
|
|
POSTGRES_DB: dmt
|
2024-10-17 22:37:46 +00:00
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
OTP_VERSION: $OTP_VERSION
|
|
|
|
THRIFT_VERSION: $THRIFT_VERSION
|
|
|
|
volumes:
|
|
|
|
- .:$PWD
|
2024-11-01 22:34:09 +00:00
|
|
|
hostname: dmt
|
2024-10-17 22:37:46 +00:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
working_dir: $PWD
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: dmt
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|