-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (39 loc) · 1.06 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
version: '3.7'
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
volumes:
- /data/nginx/nginx.conf:/etc/nginx/nginx.conf
- /data/nginx/ssl_params:/etc/nginx/ssl_params
- /data/nginx/sites-enabled:/etc/nginx/sites-enabled
- /data/nginx/ssl:/etc/nginx/ssl
- /data/nginx/log:/var/log/nginx
ports:
- "80:80"
- "443:443"
restart: always
acme1:
image: neilpang/acme.sh
container_name: acme1
network_mode: "host"
command: ["daemon"]
volumes:
- /data/nginx/acme1:/acme.sh
- /data/nginx/ssl:/etc/nginx/ssl
environment:
- "Ali_Key=${acme1_ALI_KEY}"
- "Ali_Secret=${acme1_ALI_SECRET}"
restart: always
acme2:
image: neilpang/acme.sh
container_name: acme2
network_mode: "host"
command: ["daemon"]
volumes:
- /data/nginx/acme2:/acme.sh
- /data/nginx/ssl:/etc/nginx/ssl
environment:
- "Ali_Key=${acme2_ALI_KEY}"
- "Ali_Secret=${acme2_ALI_SECRET}"
restart: always