-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (102 loc) · 2.52 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
volumes:
pgdata:
services:
postgres:
image: postgres
container_name: upnext-db
volumes:
- pgdata:/var/lib/postgres/data
ports:
- 5432:5432
network_mode: host
discovery:
build:
context: ./cmd/discovery_service
dockerfile: Dockerfile.discovery
args:
- http_proxy
- https_proxy
container_name: upnext-discovery
ports:
- 9090:9090
network_mode: host
command: ./discovery_service -url 0.0.0.0:9090 -authtoken ${AUTHTOKEN}
backend_3030:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
container_name: upnext-backend-3030
environment:
- DB_URL
- http_proxy
- https_proxy
- YOUTUBE_API_KEY
ports:
- 3030:3030
network_mode: host
command: ./upnext-backend -authtoken ${AUTHTOKEN} -discourl ${DISCOVERY_URL} -clusterurl ${CLUSTER_URL_3030} -apiurl "0.0.0.0:3030"
backend_4040:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
container_name: upnext-backend-4040
environment:
- DB_URL
- http_proxy
- https_proxy
- YOUTUBE_API_KEY
ports:
- 4040:4040
network_mode: host
command: ./upnext-backend -authtoken ${AUTHTOKEN} -discourl ${DISCOVERY_URL} -clusterurl ${CLUSTER_URL_4040} -apiurl "0.0.0.0:4040"
backend_5050:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
container_name: upnext-backend-5050
environment:
- DB_URL
- http_proxy
- https_proxy
- YOUTUBE_API_KEY
ports:
- 5050:5050
network_mode: host
command: ./upnext-backend -authtoken ${AUTHTOKEN} -discourl ${DISCOVERY_URL} -clusterurl ${CLUSTER_URL_5050} -apiurl "0.0.0.0:5050"
backend_6060:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
container_name: upnext-backend-6060
environment:
- DB_URL
- http_proxy
- https_proxy
- YOUTUBE_API_KEY
ports:
- 6060:6060
network_mode: host
command: ./upnext-backend -authtoken ${AUTHTOKEN} -discourl ${DISCOVERY_URL} -clusterurl ${CLUSTER_URL_6060} -apiurl "0.0.0.0:6060"
nginx:
image: nginx:alpine
container_name: upnext-nginx
ports:
- 8000:8000
network_mode: host
environment:
- NGINX_PORT=8000
volumes:
- ./nginx-load-balancer.conf:/etc/nginx/conf.d/upnext.conf