-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextcloud.yml
95 lines (89 loc) · 2.46 KB
/
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
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
version: '3.3'
networks:
traefik-public:
external: true
nextcloud:
volumes:
nextcloud:
db:
services:
mariadb:
image: linuxserver/mariadb:10.6.13
volumes:
- /glusterfs/nextcloud-db:/config
environment:
- MYSQL_ROOT_PASSWORD=${NEXT_CLOUD_ROOT_PASSWORD}
- MYSQL_PASSWORD=${NEXT_CLOUD_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=${NEXT_CLOUD_USER}
# command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed
networks:
- nextcloud
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.storage==yes
replicas: 1
app:
depends_on:
- mariadb
image: nextcloud:27
volumes:
- /glusterfs/nextcloud/:/var/www/html
- /mnt/data/nextcloud-data/:/data
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.storage==yes
replicas: 1
labels:
- traefik.enable=true
- traefik.http.middlewares.nextcloud.headers.stsSeconds=15552000
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.${BASE_HOST}`)
- traefik.http.routers.nextcloud.entrypoints=websecure
- traefik.http.routers.nextcloud.tls.certresolver=le
- traefik.http.services.nextcloud.loadbalancer.server.port=80
- traefik.http.routers.nextcloud.middlewares=nextcloud
# - traefik.docker.network=traefik-public
# - traefik.enable=true
# - traefik.frontend.entryPoints=http,https
# - traefik.frontend.redirect.entryPoint=https
# - traefik.frontend.rule=Host:nextcloud.${BASE_HOST}
# - traefik.frontend.headers.customResponseHeaders=Strict-Transport-Security:15552000
# - traefik.protocol=http
# - traefik.port=80
networks:
- traefik-public
- nextcloud
ports:
- 8484:80
cron:
depends_on:
- mariadb
image: nextcloud:27
volumes:
- /glusterfs/nextcloud/:/var/www/html
- /mnt/data/nextcloud-data/:/data
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.storage==yes
replicas: 1
entrypoint: /cron.sh
networks:
- nextcloud