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

View File

@@ -17,10 +17,11 @@ services:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- nginx_network
- traefik_web
app:
image: nextcloud:27.1.5
image: nextcloud:27.1.6
container_name: nextcloud
restart: always
ports:
@@ -35,8 +36,11 @@ services:
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud_db
networks:
- nginx_network
- traefik_web
labels:
- "traefik.enable=true"
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.montana2000.freeddns.org`)"
networks:
nginx_network:
driver: bridge
traefik_web:
external: true