-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 921 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 921 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
services:
backend:
build: ./backend
container_name: backend
ports:
- "5001:5001"
networks:
- coursify-network
environment:
MONGO_URI: mongodb://admin:password@mongo:27017
RESTREVIEWS_NS: restaurant_reviews
depends_on:
- mongo
frontend:
build: ./frontend
container_name: frontend
ports:
- "3000:3000"
networks:
- coursify-network
depends_on:
- backend
mongo:
image: mongo:7.0
container_name: mongo
ports:
- "27017:27017"
networks:
- coursify-network
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: restaurant_reviews
volumes:
- mongo_data:/data/db
- ./mongo-init:/docker-entrypoint-initdb.d
restart: unless-stopped
networks:
coursify-network:
driver: bridge
volumes:
mongo_data: