feat: add Docker support with environment configuration and health checks

This commit is contained in:
2025-07-02 19:10:32 +00:00
committed by GitHub
parent 4fe02675ec
commit d7f4894c7c
7 changed files with 350 additions and 1 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
version: '3.8'
services:
mice:
image: ghcr.io/sillyangel/mice:latest
ports:
- "${HOST_PORT:-3000}:${PORT:-3000}"
environment:
# Navidrome Server Configuration (OPTIONAL)
# Uncomment and configure these if you want to pre-configure the server connection
# If not set, the app will prompt you to configure these settings on first launch
# - 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