-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (57 loc) · 1.19 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
version: '2'
volumes:
nextcloud:
db:
networks:
nextcloud_network:
external: false
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=mysqlrootpassword
- MYSQL_PASSWORD=mysqlpassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- nextcloud_network
app:
image: nextcloud
restart: always
ports:
- 44443:80
links:
- db
volumes:
- /mnt/nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=mysqlpassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- REDIS_HOST=redis
networks:
- nextcloud_network
redis:
image: redis:alpine
container_name: redis
volumes:
- /mnt/nextcloud/redis:/data
networks:
- nextcloud_network
restart: unless-stopped
cron:
image: nextcloud
restart: always
volumes:
- /mnt/nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- app
networks:
- nextcloud_network