Update docker-compose.yml
Browse files- docker-compose.yml +33 -0
docker-compose.yml
CHANGED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '2'
|
2 |
+
|
3 |
+
volumes:
|
4 |
+
nextcloud:
|
5 |
+
db:
|
6 |
+
|
7 |
+
services:
|
8 |
+
db:
|
9 |
+
image: mariadb:10.6
|
10 |
+
restart: always
|
11 |
+
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
12 |
+
volumes:
|
13 |
+
- db:/var/lib/mysql
|
14 |
+
environment:
|
15 |
+
- MYSQL_ROOT_PASSWORD=1
|
16 |
+
- MYSQL_PASSWORD=1
|
17 |
+
- MYSQL_DATABASE=nextcloud
|
18 |
+
- MYSQL_USER=nextcloud
|
19 |
+
|
20 |
+
app:
|
21 |
+
image: nextcloud
|
22 |
+
restart: always
|
23 |
+
ports:
|
24 |
+
- 8080:80
|
25 |
+
links:
|
26 |
+
- db
|
27 |
+
volumes:
|
28 |
+
- nextcloud:/var/www/html
|
29 |
+
environment:
|
30 |
+
- MYSQL_PASSWORD=
|
31 |
+
- MYSQL_DATABASE=nextcloud
|
32 |
+
- MYSQL_USER=nextcloud
|
33 |
+
- MYSQL_HOST=db
|