|
| 1 | +# ============================================================================= |
| 2 | +# Docker Compose - Homelab Override (OPTIONAL) |
| 3 | +# ============================================================================= |
| 4 | +# This file is for homelab/CI-CD deployments using GHCR images |
| 5 | +# Regular users should use docker-compose.yml directly |
| 6 | +# ============================================================================= |
| 7 | +# Use with: docker-compose -f docker-compose.yml -f deployment/docker-compose.homelab.yml up |
| 8 | +# ============================================================================= |
| 9 | + |
| 10 | +version: '3.8' |
| 11 | + |
| 12 | +services: |
| 13 | + # =========================================================================== |
| 14 | + # Backend Service - Use GHCR Image |
| 15 | + # =========================================================================== |
| 16 | + backend: |
| 17 | + # Remove build section and use GHCR image instead |
| 18 | + image: ghcr.io/medevs/portfolio-backend:latest |
| 19 | + # Keep all other settings from base compose |
| 20 | + pull_policy: always # Always pull latest image |
| 21 | + |
| 22 | + # =========================================================================== |
| 23 | + # Frontend Service - Use GHCR Image |
| 24 | + # =========================================================================== |
| 25 | + frontend: |
| 26 | + # Remove build section and use GHCR image instead |
| 27 | + image: ghcr.io/medevs/portfolio-frontend:latest |
| 28 | + # Override ports for homelab |
| 29 | + ports: |
| 30 | + - "3100:3000" |
| 31 | + # Override environment variables for homelab |
| 32 | + environment: |
| 33 | + - NEXT_PUBLIC_API_URL=http://portfolio-api.medevs.local |
| 34 | + - NEXT_PUBLIC_ADMIN_API_KEY=${ADMIN_API_KEY} |
| 35 | + pull_policy: always # Always pull latest image |
| 36 | + |
0 commit comments