-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
executable file
·49 lines (47 loc) · 1018 Bytes
/
compose.yaml
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.8"
volumes:
nextcloud: null
db: null
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- "${NEXTCLOUD_HOST_ROOT}/db_data/:/var/lib/mysql"
env_file:
- .env
networks:
- nextcloud
app:
image: nextcloud
restart: always
ports:
- 8180:80
links:
- db
volumes:
- "${NEXTCLOUD_HOST_ROOT}/data/:/var/www/html"
networks:
- nextcloud
redis:
image: redis:alpine
container_name: redis
volumes:
- "${NEXTCLOUD_HOST_ROOT}/data/redis:/data"
networks:
- nextcloud
restart: always
db_backup:
container_name: db_backup
image: tiredofit/db-backup
depends_on:
- db
volumes:
- "${NEXTCLOUD_HOST_BACKUP_LOCATION}/mysql_db/:/backup"
#- ./post-script.sh:/assets/custom-scripts/post-script.sh
env_file:
- .env
restart: always
networks:
nextcloud: {}