-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.15 KB
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
version: '3'
services:
db:
image: mariadb:10
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Aa1234
env_file:
- db.env
app:
image: nextcloud:production-fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=cloud.example.com
- NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
- NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
env_file:
- db.env
depends_on:
- db
secrets:
- nextcloud_admin_password
- nextcloud_admin_user
web:
build: ./web
restart: always
ports:
- 8080:443
volumes:
- ./web/certs/domain.crt:/etc/nginx/domain.crt
- ./web/certs/domain.key:/etc/nginx/domain.key
- nextcloud:/var/www/html:ro
depends_on:
- app
volumes:
db:
nextcloud:
secrets:
nextcloud_admin_password:
file: ./nextcloud_admin_password.txt
nextcloud_admin_user:
file: ./nextcloud_admin_user.txt