Files
mice/docker-compose.yml
angel 62fc5509b0
Some checks failed
Publish Docker Image / push_to_registry (push) Failing after 2m2s
feat: enhance Docker setup with environment variable management and add example docker-compose file
2025-07-02 20:37:03 +00:00

31 lines
911 B
YAML

version: '3.8'
services:
mice:
image: ghcr.io/sillyangel/mice:latest
ports:
- "${HOST_PORT:-3000}:${PORT:-3000}"
environment:
# Navidrome Server Configuration
# These will be injected at runtime using the entrypoint script
- NEXT_PUBLIC_NAVIDROME_URL=${NAVIDROME_URL:-}
- NEXT_PUBLIC_NAVIDROME_USERNAME=${NAVIDROME_USERNAME:-}
- NEXT_PUBLIC_NAVIDROME_PASSWORD=${NAVIDROME_PASSWORD:-}
# PostHog Analytics (optional)
- NEXT_PUBLIC_POSTHOG_KEY=${POSTHOG_KEY:-}
- NEXT_PUBLIC_POSTHOG_HOST=${POSTHOG_HOST:-}
# Application Port
- PORT=${PORT:-3000}
# Optional: Add a health check
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:${PORT:-3000}"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped