captcha_aggregator/docker-compose.yml

26 lines
581 B
YAML

services:
captchas:
build: .
env_file: .env
ports:
- ${APP_PORT}:${APP_PORT}
depends_on:
database:
condition: service_healthy
restart: on-failure
volumes:
- ./data/uploads:${DATA_DIR}
- ./.env:/app/.env:ro
database:
hostname: database
image: 'postgres:15'
volumes:
- ./data/db:/var/lib/postgresql/data
env_file: .env
environment:
POSTGRES_USER: ${DBUSER}
POSTGRES_PASSWORD: ${DBPASS}
POSTGRES_DB: ${DBNAME}
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DBUSER}"]