-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 982 Bytes
/
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
version: '3.0'
services:
nginx_rp:
build: ./nginx_rp/
container_name: nginx_rp
depends_on:
- server1
- server2
- server3
networks:
- docker_network
links:
- server1
- server2
- server3
ports:
- 80:80
nginx_lb:
build: ./nginx_lb/
container_name: nginx_lb
depends_on:
- server1
- server2
networks:
- docker_network
links:
- server1
- server2
ports:
- 80:80
server1:
container_name: server1
build: ./server1/
command: python app.py
ports:
- "81:81"
networks:
- docker_network
server2:
container_name: server2
build: ./server2/
command: python app.py
ports:
- "82:82"
networks:
- docker_network
server3:
container_name: server3
build: ./server3/
command: python app.py
ports:
- "83:83"
networks:
- docker_network
networks:
docker_network: