-
Notifications
You must be signed in to change notification settings - Fork 6
/
nextcloud.yml
36 lines (34 loc) · 950 Bytes
/
nextcloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3.7"
services:
nextcloud:
container_name: nextcloud
image: linuxserver/nextcloud:latest
restart: always
networks:
home_net:
ipv4_address: 192.168.0.68
expose:
- 80
security_opt:
- no-new-privileges:true
volumes:
- $USERDIR/nextcloud:/config
- $HOME/cloud:/data
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
labels:
- "traefik.enable=true"
- "traefik.docker.network=home_net"
## http Routers
- "traefik.http.routers.nextcloud-rtr.entrypoints=https"
- "traefik.http.routers.nextcloud-rtr.rule=HostHeader(`cloud.$DOMAINNAME`)"
- "traefik.http.routers.nextcloud-rtr.tls=true"
## Service
- "traefik.http.services.nextcloud-svc.loadbalancer.server.port=80"
## Middleware Rules
- "traefik.http.routers.nextcloud-rtr.middlewares=chain-nextcloud@file"
networks:
home_net:
external: true