Files
chore/docker-compose.yml
Ryan Kegel 395199f9b2
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Has been cancelled
feat: add workflow for promoting master to production with testing and deployment steps
2026-04-26 23:02:46 -04:00

38 lines
1.2 KiB
YAML

# yaml
version: "3.8"
services:
chores-app-backend: # Production backend service name
image: git.ryankegel.com:3000/kegel/chores/backend:latest # Or specific version tag
container_name: chores-app-backend-prod # Added for easy identification
ports:
- "${BACKEND_HOST_PORT:-5001}:5000" # Host port -> Container 5000
environment:
- FLASK_ENV=production
- FRONTEND_URL=${FRONTEND_URL}
volumes:
- chores-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed
networks:
- chores-app-net
# Add other volumes, networks, etc., as needed
chores-app-frontend: # Production frontend service name
image: git.ryankegel.com:3000/kegel/chores/frontend:latest # Or specific version tag
container_name: chores-app-frontend-prod # Added for easy identification
ports:
- "${FRONTEND_HOST_PORT:-4601}:443" # Host port -> Container 443 (HTTPS)
environment:
- BACKEND_HOST=chores-app-backend # Points to internal backend service
depends_on:
- chores-app-backend
networks:
- chores-app-net
# Add volumes, networks, etc., as needed
networks:
chores-app-net:
driver: bridge
volumes:
chores-app-backend-data: {}