workout-challenge/docker-compose.yml
2025-10-26 22:11:40 -04:00

37 lines
No EOL
1.1 KiB
YAML

version: '3.9'
services:
workoutchallenge:
image: workhardbekind/workout_challenge
container_name: workoutchallenge
build: .
ports:
- "80:80"
- "5555:5555" # Celery Flower task monitoring - do not open to public - only for local network for debugging
- "9001:9001" # Supervisord process monitoring - do not open to public - only for local network for debugging
- "8000:8000" # Django admin space - do not open to public - only for local network for debugging
volumes:
- 'S:/Node.js/workout-challenge/db:/workout_challenge/src-backend/data'
env_file: .env
restart: unless-stopped
depends_on:
database:
condition: service_healthy
database:
image: postgres:15
container_name: workoutchallenge-database
environment:
- POSTGRES_DB=workoutchallenge
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5434:5432"
volumes:
- 'S:/Node.js/workout-challenge/db:/var/lib/postgresql/data'
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5