-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
58 lines (53 loc) · 1.32 KB
/
docker-compose.prod.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
version: "3.9"
services:
nginx-proxy:
container_name: nginx-proxy
image: nginxproxy/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- certs:/etc/nginx/certs:ro
- ../nginx/log:/var/log/nginx
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- conf:/etc/nginx/conf.d
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx-proxy"
restart: always
letsencrypt-nginx-proxy:
container_name: letsencrypt-nginx-proxy
image: nginxproxy/acme-companion
depends_on:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: always
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
# - ACME_CA_URI=https://acme.zerossl.com/v2/DV90
# - ACME_EAB_KID=${ACME_EAB_KID}
# - ACME_EAB_HMAC_KEY=${ACME_EAB_HMAC_KEY}
springboot:
environment:
- VIRTUAL_HOST=${HOST}
- LETSENCRYPT_HOST=${HOST}
expose:
- "${PORT}"
adminer:
environment:
- VIRTUAL_HOST=db.${HOST}
- LETSENCRYPT_HOST=db.${HOST}
expose:
- "8081"
volumes:
certs:
conf:
vhost:
html:
acme: