-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 836 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 836 Bytes
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
version: "3.8"
services:
api_v1:
build:
dockerfile: Dockerfile_v1_app
context: .
environment:
- FLASK_PORT=5000
networks:
- myflaskapi
entrypoint:
- python
- /var/flask/app_v1.py
api_v2:
build:
dockerfile: Dockerfile_v2_app
context: .
environment:
- FLASK_PORT=5001
networks:
- myflaskapi
entrypoint:
- python
- /var/flask/app_v2.py
api_middleware:
build:
dockerfile: Dockerfile_middleware_app
context: .
ports:
- "5555:5555"
networks:
- myflaskapi
environment:
- PLATFORM=DOCKER
entrypoint:
- python
- /var/flask/app_middleware.py
links:
- api_v1
- api_v2
depends_on:
- api_v1
- api_v2
networks:
myflaskapi:
name: myflaskapi