forked from Vinge1718/yolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.07 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"
services:
frontend:
build:
context: ./client
ports:
- "3000:3000"
environment:
- REACT_APP_URL=http://backend:5000
networks:
- yolo-net
depends_on:
- backend
image: marvol0/yolo-frontend:v2.0.0
backend:
build:
context: ./backend
ports:
- "5000:5000"
env_file:
- /workspaces/yolo/backend/.env
environment:
- MONGO_URI=mongodb://admin:[email protected]/?retryWrites=true&w=majority&appName=moringa-week-4-cluster
networks:
- yolo-net
depends_on:
- mongodb
image: marvol0/yolo-backend:v1.0.0
restart: always
mongodb:
image: mongo:latest
container_name: mongodb
env_file:
- /workspaces/yolo/backend/.env
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- yolo-net
networks:
yolo-net:
driver: bridge
volumes:
mongodb_data:
driver: local