-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-example.yml
49 lines (46 loc) · 1.21 KB
/
docker-compose-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
version: "3"
services:
nextcloud:
image: hoellen/nextcloud:15.0
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
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-nc-backup:
image: waja/calcardbackup
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