-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.44 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
64
65
66
67
68
69
70
71
72
73
# How to use :
# caddy_user=admin caddy_pass=123456 docker-compose up -d
# docker-compose down
# --------------------------------------------------------------------------------
version: '2'
services:
nginx:
hostname: NGINX
container_name: docker_nginx
image: nginx:mainline
volumes:
- ./nginx/etc/bt_site.conf:/etc/nginx/conf.d/bt_site.conf
- ./nginx/html:/usr/share/nginx/html
ports:
- "80:80"
networks:
vpn:
ipv4_address: 172.168.21.2
restart: on-failure
torrent:
hostname: TORRENT
container_name: docker_torrent
build:
context: ./torrent
dockerfile: ./Dockerfile
volumes:
- ./downloads/:/downloads/
ports:
- "8080:8080"
- "9000:9000"
- "8081:8081"
- "8081:8081/udp"
networks:
vpn:
ipv4_address: 172.168.21.3
depends_on:
- nginx
restart: on-failure
caddy:
hostname: CADDY
container_name: docker_caddy
build:
context: ./caddy
dockerfile: ./Dockerfile
args:
- USERNAME=${caddy_user}
- PASSWORD=${caddy_pass}
volumes:
- ./downloads/:/downloads/
ports:
- "9090:9090"
networks:
vpn:
ipv4_address: 172.168.21.4
depends_on:
- torrent
restart: on-failure
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.21.0/24
gateway: 172.168.21.1