add nginx

This commit is contained in:
valentin
2023-03-29 17:39:20 +02:00
parent ece89864d0
commit 1c817164d2
2 changed files with 78 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
version: '3.7'
services:
nginx:
image: nginx:latest
restart: always
networks:
- traefik_web
- default
labels:
- traefik.enable=true
- traefik.docker.network=traefik_web
- traefik.http.routers.${ROUTER_NAME}-router.entrypoints=${ENTRYPOINT}
- traefik.http.routers.${ROUTER_NAME}-router.rule=Host(`${APP_HOST}`)
- traefik.http.routers.${ROUTER_NAME}-router.tls=true
volumes:
db_data:
networks:
traefik_web:
external: true