-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.13 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
version: '3'
services:
backend:
build:
context: .
dockerfile: ./configs/Dockerfile-backend
expose:
- 8000
ports:
- "8000:80"
haproxy:
image: haproxy:latest
expose:
- 443
ports:
- "8001:443"
volumes:
- ./configs/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
- ./configs/haproxy.pem:/tmp/haproxy.pem
links:
- backend
nginx:
image: nginx:latest
expose:
- 443
ports:
- "8002:443"
volumes:
- ./configs/nginx.conf:/etc/nginx/conf.d/vhost.conf:ro
- ./configs/key.pem:/tmp/key.pem
- ./configs/cert.pem:/tmp/cert.pem
links:
- backend
nuster:
image: nuster/nuster:latest
expose:
- 80
- 443
ports:
- "8003:443"
volumes:
- ./configs/nuster.cfg:/etc/nuster/nuster.cfg:ro
- ./configs/haproxy.pem:/tmp/haproxy.pem
links:
- backend
- haproxy