-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 852 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 852 Bytes
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
version: "3"
networks:
nginx-proxy-manager:
external: true
nextcloud-network:
driver: bridge
services:
nextcloud:
image: nextcloud
restart: on-failure
# ports:
# - 80:80
depends_on:
- mysql
volumes:
- ./data:/var/www/html
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=CHANE_ME_A
- MYSQL_HOST=mysql
networks:
- nginx-proxy-manager
- nextcloud-network
mysql:
image: mysql:5.7
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
environment:
- MYSQL_ROOT_PASSWORD=CHANE_ME_B
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=CHANE_ME_A
- MYSQL_DATABASE=nextcloud
volumes:
- ./mysql:/var/lib/mysql
networks:
- nextcloud-network