Remove Traefik from Nextcloud

This commit is contained in:
Andreas Zweili 2022-05-18 21:34:11 +02:00
parent adf117d5dc
commit b68adc2d8f
1 changed files with 2 additions and 16 deletions

View File

@ -1,16 +1,6 @@
version: "2" version: "2"
services: services:
traefik:
image: "traefik:v2.2"
ports:
- "443:443"
volumes:
- "./traefik.yaml:/etc/traefik/traefik.yaml:ro"
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
restart: unless-stopped
db: db:
image: mariadb:10.5-focal image: mariadb:10.5-focal
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
@ -50,12 +40,8 @@ services:
volumes: volumes:
- nextcloud_data:/var/www/html - nextcloud_data:/var/www/html
- ./custom-php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini - ./custom-php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
labels: ports:
- "traefik.enable=true" - 8080:80
- "traefik.http.routers.nextcloud.rule=Host(`${APP_DOMAIN}`)"
- "traefik.http.routers.nextcloud.entrypoints=websecure"
- "traefik.http.routers.nextcloud.tls.certresolver=myresolver"
- "traefik.http.routers.nextcloud.middlewares=default-headers@file"
restart: unless-stopped restart: unless-stopped
cron: cron: