-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 926 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
version: "3.3"
services:
flask:
container_name: "flask"
build:
context: python-api
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- /proc:/proc
environment:
MONGODB_URL: "sopes1_mongodb:27017"
PORT: 5000
depends_on:
- sopes1_mongodb
networks:
- frontend
- backend
frontend:
container_name: "sopes1_frontend"
build:
context: front
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- sopes1_mongodb
sopes1_mongodb:
container_name: "sopes1_mongodb"
image: mongo
ports:
- "27017-27019:27017-27019"
networks:
- backend
networks:
backend:
driver: bridge
frontend:
driver: bridge