-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1002 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
42
43
44
45
46
47
48
49
50
51
52
# development docker-compose.yml
version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- 3100:3100
volumes:
- ./frontend/src:/app/src:ro
environment:
- REACT_APP_NAME=PolyNotes-dev
- CHOKIDAR_USEPOLLING=true
mongo:
image: mongo
container_name: mongodb-polynote
restart: always
environment:
MONGO_INITDB_DATABASE: polynotes
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
networks:
- backend-network
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
volumes:
- ./src:/app/src:ro
- /app/node_modules
# ports:
# - 3000:3000
env_file:
- ./backend/.env
command: npm run start:dev
depends_on:
- mongo
- frontend
networks:
- backend-network
restart: always
networks:
backend-network:
driver: bridge
volumes:
mongodb_data_container: