version: '3.9' services: workoutchallenge: image: workhardbekind/workout_challenge container_name: workoutchallenge 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: - /usr/pi/workout_challenge/django:/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: - /home/dave/workout/db:/var/lib/postgresql/data restart: unless-stopped healthcheck: test: [ "CMD-SHELL", "pg_isready -U postgres" ] interval: 5s timeout: 5s retries: 5