Move to Traefik

This commit is contained in:
2024-02-13 19:10:53 +01:00
parent 3fdd3e43f8
commit 1b4cfc5291
5 changed files with 69 additions and 12 deletions

19
nginx/docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
services:
nginx:
image: nginx:1.25
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.rule=Host(`montana2000.freeddns.org`)"
- "traefik.http.routers.nginx.middlewares=nginx-auth"
- "traefik.http.middlewares.nginx-auth.basicauth.users=nils:$$apr1$$JDBG7p8k$$LB8y6/aKcNQ/ybLz7LXjY."
networks:
- traefik_web
volumes:
- www-data:/usr/share/nginx/html/
volumes:
www-data:
networks:
traefik_web:
external: true