-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-complex-example.yml
121 lines (115 loc) · 3.17 KB
/
docker-compose-complex-example.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: "3"
services:
nextcloud:
image: hoellen/nextcloud:15.0
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.backend=nextcloud
- traefik.frontend.rule=Host:nextcloud.test.org
- traefik.docker.network=traefik_default
- traefik.port=8888
- traefik.default.protocol=http
- "traefik.frontend.redirect.regex=^(.*)/.well-known/webfinger"
- "traefik.frontend.redirect.replacement=$$1/public.php?service=webfinger"
links:
- nextcloud-db:nextcloud-db
- nextcloud-redis:nextcloud-redis
environment:
- UID=1000
- GID=1000
- UPLOAD_MAX_SIZE=10G
- APC_SHM_SIZE=128M
- OPCACHE_MEM_SIZE=128
- CRON_PERIOD=15m
- TZ=Europe/Berlin
- DOMAIN=nextcloud.test.org
- DB_TYPE=mysql
- DB_NAME=nextcloud
- DB_USER=nextcloud
- DB_PASSWORD=YOUSHOULDHAVECHANGEDTHAT
- DB_HOST=nextcloud-db
- CHECK_PERMISSIONS=1
depends_on:
- nextcloud-db
- nextcloud-redis
networks:
- default
- traefik_default
restart: unless-stopped
volumes:
- ./data:/data
- ./config:/config
- ./apps:/apps2
- ./themes:/nextcloud/themes
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
nextcloud-db:
image: mariadb:10.3
labels:
com.centurylinklabs.watchtower.enable: "true"
environment:
- MYSQL_ROOT_PASSWORD=YOUSHOULDHAVECHANGEDTHATTOO
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=YOUSHOULDHAVECHANGEDTHAT
restart: unless-stopped
volumes:
- ./mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
nextcloud-redis:
image: redis:5.0-alpine
labels:
com.centurylinklabs.watchtower.enable: "true"
restart: unless-stopped
volumes:
- ./redis:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
nextcloud-db-backup:
image: fradelg/mysql-cron-backup
labels:
com.centurylinklabs.watchtower.enable: "true"
links:
- nextcloud-db:nextcloud-db
environment:
- MYSQL_HOST=nextcloud-db
- MYSQL_USER=nextcloud
- MYSQL_PASS=YOUSHOULDHAVECHANGEDTHAT
- MAX_BACKUPS=20
- CRON_TIME=0 0 * * *
depends_on:
- nextcloud-db
restart: unless-stopped
volumes:
- ./mysql-backups:/backup
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
nextcloud-nc-backup:
image: waja/calcardbackup
labels:
com.centurylinklabs.watchtower.enable: "true"
links:
- nextcloud-db:nextcloud-db
- nextcloud:nextcloud
environment:
- CRON_TIME=0 0 * * *
- INIT_BACKUP=yes
- CALCARD_OPTS=-i -r 20
- NC_DIR=/nextcloud
- NC_HOST=nextcloud
- NC_PORT=8888
- DB_HOST=nextcloud-db
depends_on:
- nextcloud-db
- nextcloud
restart: unless-stopped
volumes:
- ./calcardbackup:/backup
- ./config:/nextcloud/config
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
traefik_default:
external: true