Use the new traefik public network
This commit is contained in:
parent
e8b54ec967
commit
82be4f4f60
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue