A custom entrypoint generates /etc/nginx/.htpasswd at container startup from AUTH_USER and AUTH_PASSWORD env vars (via openssl). No credentials are baked into the image. Pass AUTH_USER and AUTH_PASSWORD in docker-compose. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
228 B
YAML
11 lines
228 B
YAML
services:
|
|
football-app:
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:80"
|
|
environment:
|
|
- FOOTBALL_API_KEY=${FOOTBALL_API_KEY}
|
|
- AUTH_USER=${AUTH_USER}
|
|
- AUTH_PASSWORD=${AUTH_PASSWORD}
|