-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (78 loc) · 1.7 KB
/
docker-compose.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
version: '3.7'
x-labels:
labels: &default-label
nextcloud:
services:
db:
# https://github.com/nextcloud/docker/issues/1492
image: mariadb:10.5
labels: *default-label
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
env_file:
- db.env
redis:
image: redis:alpine
command: redis-server --requirepass nextcloud
labels: *default-label
restart: always
app:
image: nextcloud:apache
labels: *default-label
restart: always
volumes:
- nextcloud:/var/www/html
env_file:
- .env
- db.env
environment:
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=nextcloud
- MYSQL_HOST=db
# Comma-seperated
- VIRTUAL_HOST=${LETSENCRYPT_HOST}
depends_on:
- db
- redis
networks:
- proxy-tier
- default
cron:
image: nextcloud:apache
labels: *default-label
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis
jobber:
build: ./jobber
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /backup:/backup
- ./shellScript:/script:ro
environment:
- JOB_NAME1=Backup
- JOB_COMMAND1=/bin/bash /script/backup.sh && /bin/bash /script/upload.sh
- JOB_TIME1=0 0 0 * * 3 #Exec per Week at UTC Wed. 0 a.m.
- JOB_NOTIFY_ERR1=true
- JOB_NOTIFY_FAIL1=true
secrets:
- rsyncpass
volumes:
db:
labels: *default-label
nextcloud:
labels: *default-label
networks:
proxy-tier:
external: true
name: proxy-tier
secrets:
rsyncpass:
file: ~/ssh.pas