-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yml
More file actions
99 lines (87 loc) · 2.61 KB
/
Copy pathcompose.yml
File metadata and controls
99 lines (87 loc) · 2.61 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
nextcloud-app:
image: docker.io/nfrastack/nextcloud:33
container_name: nextcloud-app
labels:
- traefik.enable=true
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.example.com`)
- traefik.http.services.nextcloud.loadbalancer.server.port=80
- traefik.http.middlewares.nextcloud-caldav.redirectregex.permanent=true
- traefik.http.middlewares.nextcloud-rep.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav
- traefik.http.middlewares.nextcloud-rep.redirectregex.replacement=https://$$1/remote.php/dav/
- traefik.http.middlewares.nextcloud-rep.redirectregex.permanent=true
- traefik.http.middlewares.nextcloud-header.headers.stsIncludeSubdomains=true
- traefik.http.middlewares.nextcloud-header.headers.stsSeconds=15552000
- traefik.http.routers.nextcloud-app.middlewares=nextcloud-rep,nextcloud-header
ports:
- 8001:80
volumes:
- ./data/apps:/data/apps
- ./data/config:/www/nextcloud/config
- ./data/data:/data/userdata
- ./data/templates:/data/templates
- ./data/themes:/www/nextcloud/themes
- ./logs:/logs
environment:
- TIMEZONE=America/Vancouver
- ADMIN_USER=admin
- ADMIN_PASS=pass
- DOMAIN=example.com
- DB_TYPE=mysql
- DB_NAME=nextcloud
- DB_USER=nextcloud
- DB_PASS=password
- DB_HOST=nextcloud-db
- REDIS_HOST=nextcloud-redis
networks:
- proxy
- services
restart: always
nextcloud-db:
image: docker.io/nfrastack/mariadb:11.8
container_name: nextcloud-db
volumes:
- ./db:/data
environment:
- TIMEZONE=America/Vancouver
- ROOT_PASS=password
- DB_NAME=nextcloud
- DB_USER=nextcloud
- DB_PASS=password
networks:
- services
restart: always
nextcloud-redis:
image: docker.io/nfrastack/redis:8
container_name: nextcloud-redis
volumes:
- ./redis:/data
environment:
- TIMEZONE=America/Vancouver
- ENABLE_PERSISTENCE=TRUE
networks:
- services
restart: always
nextcloud-db-backup:
image: docker.io/tiredofit/db-backup:latest
container_name: nextcloud-db-backup
volumes:
- ./dbbackup:/backup
environment:
- TIMEZONE=America/Vancouver
- DB01_HOST=nextcloud-db
- DB01_TYPE=mariadb
- DB01_NAME=nextcloud
- DB01_USER=nextcloud
- DB01_PASS=password
- DB01_BACKUP_INTERVAL=1440
- DB01_BACKUP_BEGIN=0000
- DB01_CLEANUP_TIME=8640
networks:
- services
restart: always
networks:
proxy:
external: true
services:
external: true