Files
chore/docker-compose.yml
Ryan Kegel 8148bfac51
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 4m0s
fix: add FRONTEND_URL to environment variables and create .env.example file
2026-02-20 13:07:55 -05: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:
- "5001:5000" # Host 5001 -> 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:
- "443:443" # Host 443 -> 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: {}