--- # Prod run template. The backend URL is injected at container start # (docker-entrypoint.d/30-frontend-config.sh), so the image carries no env. # Set VITE_API_URL including the /api suffix, e.g.: # VITE_API_URL=https://gamesapi.linuxhg.com/api # Either inline below or via env_file .env (environment wins if both set). # Traefik setups: drop ports, add your labels/networks like the existing # games-frontend service; custom nginx.conf mounts keep working. services: games-frontend: image: git.linuxhg.com/games-database/games-frontend:${IMAGE_TAG:-latest} container_name: games-frontend restart: unless-stopped environment: - VITE_API_URL= # env_file: # - .env ports: - 80:80 healthcheck: test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost/ || exit 1"] interval: 30s timeout: 5s retries: 3 start_period: 10s