forked from dreamhunter2333/docker-trojan-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.02 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
version: '2'
services:
trojan:
container_name: trojan
image: p4gefau1t/trojan-go
restart: always
ports:
- 443:443
volumes:
- ./config.json:/etc/trojan-go/config.json
- ./acme/your_site:/opt/cert
acme1:
container_name: acme1
image: neilpang/acme.sh
command: --register-account -m your_email
environment:
CF_Email: your_email
CF_Key: your_key
volumes:
- ./acme:/acme.sh
acme2:
container_name: acme2
image: neilpang/acme.sh
command: --issue -d your_site --dns dns_cf
environment:
CF_Email: your_email
CF_Key: your_key
volumes:
- ./acme:/acme.sh
acme:
container_name: acme
image: neilpang/acme.sh
command: --cron
environment:
CF_Email: your_email
CF_Key: your_key
volumes:
- ./acme:/acme.sh
my_nginx:
container_name: my_nginx
image: nginx
restart: always
ports:
- 80:80
privileged: true
volumes:
- /var/www/html:/usr/share/nginx/html