-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 908 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
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: sentience-mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- sentience-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sentience-backend
ports:
- "8000:8000"
environment:
- PORT=8000
- MONGODB_URI=mongodb://mongodb:27017/student-sentience
- JWT_SECRET=${JWT_SECRET:-super_secret_jwt_key}
- NODE_ENV=development
depends_on:
- mongodb
networks:
- sentience-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sentience-frontend
ports:
- "80:80"
depends_on:
- backend
networks:
- sentience-network
networks:
sentience-network:
driver: bridge
volumes:
mongodb_data: