Files
nginx-with-password-protect…/docker-compose.yml
Florian THIERRY 7bf349340a Initial commit.
2025-06-13 23:34:26 +02:00

10 lines
261 B
YAML

services:
nginx:
image: nginx:latest
container_name: nginx_with_auth
ports:
- "50080:80"
volumes:
- ./secret-file.txt:/app/secret-file.txt:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./.htpasswd:/etc/nginx/.htpasswd:ro