-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (46 loc) · 1.23 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
#version: '3.8'
# see here https://docs.docker.com/compose/compose-file/compose-versioning/
version: '3.1'
services:
fe:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 8085:8081
environment:
- REACT_ENV=development
networks:
- frontend
#continuing
lo:
build:
context: ./sa-logic
dockerfile: Dockerfile
ports:
- 5050:5001
environment:
- FLASK_ENV=development
networks:
- backend
wa:
build:
context: ./sa-webapp
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
- SA_LOGIC_API_URL=http://172.21.0.2:5001
- WA_NETWORK=backend
depends_on:
- lo
# specifies frontend and backend as the networks the wa service will have access to networks:
- frontend
- backend
#continuing
# bridge networks to allow the containers to communicate with each other
networks:
frontend:
driver: bridge
backend:
driver: bridge