-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 1.3 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
version: '2'
volumes:
nextcloud_db:
nextcloud_:
nextcloud_data:
nextcloud_apps:
nextcloud_config:
nextcloud_haproxy:
services:
db:
image: localhost:5000/mariadb:11.1.3
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- nextcloud_db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=12qw34er
- MYSQL_PASSWORD=12qw34er
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: localhost:5000/nextcloud:27.1.3-apache
restart: always
links:
- db
volumes:
- nextcloud_:/var/www/html
- nextcloud_data:/var/www/html/data
- nextcloud_apps:/var/www/html/custom_apps
- nextcloud_config:/var/www/html/config
environment:
- MYSQL_PASSWORD=12qw34er
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- NEXTCLOUD_ADMIN_USER=ncadmin
- NEXTCLOUD_ADMIN_PASSWORD=12qw34er
- PHP_UPLOAD_LIMIT=12G
- NEXTCLOUD_TRUSTED_DOMAINS=files.mydomain.com
- OVERWRITEHOST=files.mydomain.com
- OVERWRITEPROTOCOL=https
haproxy:
image: localhost:5000/haproxy:2.8.4
restart: always
ports:
- 80:80
- 443:443
links:
- app
volumes:
- nextcloud_haproxy:/usr/local/etc/haproxy