Files
magikarp-collection/docker-compose.yml
Foohoo d13a4f1463 Bind published app port to localhost
nginx on the host proxies to it, so it does not need to be reachable on the
LAN directly.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 13:01:21 +00:00

29 lines
857 B
YAML

version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
image: magikarp-collection:latest
environment:
- NODE_ENV=production
# Internal Next.js port (container). Do not change unless you change Dockerfile.
- PORT=3000
# Forward any API keys if needed
- NEXT_PUBLIC_POKEMON_TCG_API_KEY=${NEXT_PUBLIC_POKEMON_TCG_API_KEY}
- POKEMON_TCG_API_KEY=${POKEMON_TCG_API_KEY}
# Optional: enable very simple single-user Basic Auth
- BASIC_AUTH_USER=${BASIC_AUTH_USER}
- BASIC_AUTH_PASS=${BASIC_AUTH_PASS}
ports:
# Select host port via APP_PORT env var; default 3000
- "127.0.0.1:${APP_PORT:-3000}:3000"
volumes:
# Persist cache JSON files using a named volume
- magikarp-data:/app/data
restart: unless-stopped
volumes:
magikarp-data: