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'
|
version: '3'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
public:
|
||||||
external:
|
external:
|
||||||
name: traefik_traefik
|
name: traefik_public
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mysqldb:
|
mysqldb:
|
||||||
|
@ -24,7 +24,7 @@ services:
|
||||||
image: nextcloud:apache
|
image: nextcloud:apache
|
||||||
container_name: nextcloud-app
|
container_name: nextcloud-app
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- public
|
||||||
- default
|
- default
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysqldb
|
- mysqldb
|
||||||
|
@ -35,7 +35,7 @@ services:
|
||||||
- nextcloud.env
|
- nextcloud.env
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "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.rule=Host(`{{ nextcloud_virtual_host }}`)"
|
||||||
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
||||||
- "traefik.http.routers.nextcloud.tls=true"
|
- "traefik.http.routers.nextcloud.tls=true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue