-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (74 loc) · 1.97 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
db:
image: postgres:12-alpine
container_name: nextcloud-database
networks:
- nextcloud_network
volumes:
- db:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
env_file:
- db.env
restart: always
app:
image: nextcloud:fpm-alpine
container_name: nextcloud-app
depends_on:
- db
volumes:
- nextcloud:/var/www/html
- /ext/nextcloud/www/html/data:/var/www/html/data:rw
- /etc/localtime:/etc/localtime:ro
networks:
- nextcloud_network
env_file:
- .env
- db.env
restart: always
proxy:
build: ./proxy
container_name: nextcloud-proxy
#labels:
# com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "false"
networks:
- nextcloud_network
ports:
- 80:443
- 443:443
environment:
- DHPARAM_GENERATION=false
- DHPARAM_BITS=2048
volumes:
- /etc/letsencrypt/live/${HOST}/fullchain.pem:/etc/nginx/certs/${HOST}.fullchain.pem:ro
- /etc/letsencrypt/live/${HOST}/fullchain.pem:/etc/nginx/certs/${HOST}.crt:ro
- /etc/letsencrypt/live/${HOST}/chain.pem:/etc/nginx/certs/${HOST}.chain.pem:ro
#- /etc/letsencrypt/live/${HOST}/cert.pem:/etc/nginx/certs/${HOST}.crt:ro
- /etc/letsencrypt/live/${HOST}/privkey.pem:/etc/nginx/certs/${HOST}.key:ro
- /etc/nginx/dhparam/dhparam.pem:/etc/nginx/certs/${HOST}.dhparam.pem:ro
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
restart: always
web:
build: ./web
container_name: nextcloud-web
networks:
- nextcloud_network
- default
depends_on:
- app
volumes:
- nextcloud:/var/www/html:ro
- /ext/nextcloud/www/html/data:/var/www/html/data:ro
env_file:
- app.env
restart: always
volumes:
db:
nextcloud:
vhost.d:
html:
networks:
nextcloud_network: