flask_nginx_2
/
docker-compose.yml
48 строк · 671.0 Байт
1version: '3'
2
3services:
4loadbalancer:
5build:
6context: .
7dockerfile: Dockerfile.nginx
8ports:
9- 80:80
10- 443:443
11networks:
12- internal
13- external
14depends_on:
15- flask
16- flask2
17- flask3
18
19flask:
20build:
21context: .
22dockerfile: Dockerfile
23ports:
24- 5000:5000
25networks:
26- internal
27
28flask2:
29build:
30context: .
31dockerfile: Dockerfile
32ports:
33- 5002:5000
34networks:
35- internal
36
37flask3:
38build:
39context: .
40dockerfile: Dockerfile
41ports:
42- 5003:5000
43networks:
44- internal
45
46networks:
47internal:
48external:
49
50