Use the new traefik public network

This commit is contained in:
Jan Beilicke 2020-03-25 23:06:49 +01:00
parent e8b54ec967
commit 82be4f4f60

View file

@ -1,9 +1,9 @@
version: '3'
networks:
traefik:
public:
external:
name: traefik_traefik
name: traefik_public
services:
mysqldb:
@ -24,7 +24,7 @@ services:
image: nextcloud:apache
container_name: nextcloud-app
networks:
- traefik
- public
- default
depends_on:
- mysqldb
@ -35,7 +35,7 @@ services:
- nextcloud.env
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_traefik"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.nextcloud.rule=Host(`{{ nextcloud_virtual_host }}`)"
- "traefik.http.routers.nextcloud.entrypoints=websecure"
- "traefik.http.routers.nextcloud.tls=true"