forked from Nick-Hopps/docker-v2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.36 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
version: '3.8'
services:
certbot:
image: "${CERTBOT_VERSION}"
container_name: CertBOT
networks:
- base
ports:
- "80:80"
volumes:
- ./etc/certbot:/etc/letsencrypt
- ./log/certbot:/var/log/letsencrypt
- ./www:/var/www/html
environment:
TZ: ${TZ}
command: certonly --standalone -m ${EMAIL} --agree-tos --no-eff-email --force-renewal -d ${DOMAIN} #--dry-run #--staging
restart: on-failure
nginx:
image: "${NGINX_VERSION}"
container_name: NGINX
networks:
- base
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./etc/nginx/conf.d:/etc/nginx/conf.d
- ./log/nginx:/var/log/nginx
- ./www:/var/www/html
environment:
TZ: ${TZ}
restart: on-failure
haproxy:
image: "${HAPROXY_VERSION}"
container_name: HAProxy
networks:
- base
ports:
- "443:443"
depends_on:
- nginx
volumes:
- ./etc/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
- ./etc/certbot:/etc/letsencrypt
environment:
TZ: ${TZ}
restart: on-failure
v2ray:
image: "${V2RAY_VERSION}"
container_name: V2RAY
networks:
- base
volumes:
- ./etc/v2ray/config.json:/etc/v2ray/config.json
- ./log/v2ray:/var/log/v2ray
environment:
TZ: ${TZ}
restart: on-failure
networks:
base: