mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 15:30:19 +00:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
|
version: "2.1"
|
||
|
services:
|
||
|
nextcloud:
|
||
|
image: lscr.io/linuxserver/nextcloud:latest
|
||
|
container_name: nextcloud
|
||
|
environment:
|
||
|
- PUID=1000
|
||
|
- PGID=1000
|
||
|
- TZ=Etc/UTC
|
||
|
volumes:
|
||
|
- /home/ubuntu/docker/nextcloud/appdata:/config
|
||
|
- /home/ubuntu/docker/nextcloud/data:/data
|
||
|
# ports:
|
||
|
# - 443:443
|
||
|
restart: unless-stopped
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.http.routers.nextcloud.entrypoints=http"
|
||
|
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.jimsgarage.co.uk`)"
|
||
|
- "traefik.http.middlewares.nextcloud-https-redirect.redirectscheme.scheme=https"
|
||
|
- "traefik.http.routers.nextcloud.middlewares=nextcloud-https-redirect"
|
||
|
- "traefik.http.routers.nextcloud-secure.entrypoints=https"
|
||
|
- "traefik.http.routers.nextcloud-secure.rule=Host(`nextcloud.jimsgarage.co.uk`)"
|
||
|
- "traefik.http.routers.nextcloud-secure.tls=true"
|
||
|
- "traefik.http.routers.nextcloud-secure.service=nextcloud"
|
||
|
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
||
|
- "traefik.docker.network=proxy"
|
||
|
networks:
|
||
|
proxy:
|
||
|
|
||
|
networks:
|
||
|
proxy:
|
||
|
external: true
|