update nginx

This commit is contained in:
valentin
2023-03-29 17:50:29 +02:00
parent 0e64080ed5
commit 7c531ff634
2 changed files with 10 additions and 2 deletions

6
nginx-webserver/.env Normal file
View File

@@ -0,0 +1,6 @@
MYSQL_DATABASE=wordpress
MYSQL_ROOT_PASSWORD=wordpress
MYSQL_USER=wordpress
MYSQL_PASSWORD=wordpress
APP_HOST=wordpress.traefik.me
ROUTER_NAME=wordpress

View File

@@ -13,8 +13,10 @@ services:
- traefik.http.routers.${ROUTER_NAME}-router.entrypoints=${ENTRYPOINT} - traefik.http.routers.${ROUTER_NAME}-router.entrypoints=${ENTRYPOINT}
- traefik.http.routers.${ROUTER_NAME}-router.rule=Host(`${APP_HOST}`) - traefik.http.routers.${ROUTER_NAME}-router.rule=Host(`${APP_HOST}`)
- traefik.http.routers.${ROUTER_NAME}-router.tls=true - traefik.http.routers.${ROUTER_NAME}-router.tls=true
volumes: volumes:
db_data: - nginx-html:/usr/share/nginx/html
- nginx-conf:/etc/nginx
networks: networks:
traefik_web: traefik_web: