-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 1010 Bytes
/
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
# Required environment variables:
# UUID
version: '3.4'
services:
caddy_v2ray:
container_name: caddy_v2ray
image: caddy_v2ray
restart: unless-stopped
environment:
UUID:
volumes:
- ${HOME_PATH}/caddy_v2ray-cert:/root/cert
ports:
- "80:80"
- "443:443"
- "${TCP_PORT}:8443"
labels:
- sh.acme.autoload=caddy_v2ray
acme.sh:
container_name: acme.sh
image: neilpang/acme.sh
restart: unless-stopped
command: daemon
network_mode: host
volumes:
- ${HOME_PATH}/acmeout:/acme.sh
- /var/run/docker.sock:/var/run/docker.sock
environment:
DEPLOY_DOCKER_CONTAINER_LABEL: sh.acme.autoload=caddy_v2ray
DEPLOY_DOCKER_CONTAINER_KEY_FILE: /root/cert/privkey.pem
DEPLOY_DOCKER_CONTAINER_CERT_FILE: /root/cert/cert.pem
DEPLOY_DOCKER_CONTAINER_CA_FILE: /root/cert/ca.pem
DEPLOY_DOCKER_CONTAINER_FULLCHAIN_FILE: /root/cert/fullchain.pem
DEPLOY_DOCKER_CONTAINER_RELOAD_CMD: "caddy stop"