Files
mice/docker-compose.yml

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