
All checks were successful
Deploy to Production, build images and push to Gitea Registry / build_and_push (pull_request) Successful in 1m20s
This commit cleans up the `docker-compose.prod.yml` file by removing the database, Redis, and frontend service configurations, which were deemed unnecessary. The backend service configuration has been streamlined, including the update of the `VITE_API_URL` environment variable. This refactor aims to enhance clarity and maintainability of the Docker setup.
28 lines
750 B
YAML
28 lines
750 B
YAML
services:
|
|
backend:
|
|
container_name: fastapi_backend_prod
|
|
build:
|
|
context: ./be
|
|
dockerfile: Dockerfile.prod
|
|
target: production
|
|
environment:
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- GEMINI_API_KEY=${GEMINI_API_KEY}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- SESSION_SECRET_KEY=${SESSION_SECRET_KEY}
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
|
- LOG_LEVEL=INFO
|
|
- ENVIRONMENT=production
|
|
- CORS_ORIGINS=${CORS_ORIGINS}
|
|
- FRONTEND_URL=${FRONTEND_URL}
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
container_name: frontend_prod
|
|
build:
|
|
context: ./fe
|
|
dockerfile: Dockerfile.prod
|
|
target: production
|
|
environment:
|
|
- VITE_API_URL=https://mitlistbe.mohamad.dev
|
|
restart: unless-stopped |