-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 975 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
version: '3.8'
services:
frontend:
build: ./frontend
environment:
- REACT_APP_BACKEND_URL=http://localhost:4567
- REACT_APP_ENV=development
ports:
- "3000:3000"
volumes:
- ./frontend:/frontend
networks:
- everwrite-network
depends_on:
- backend
backend:
build: ./backend
environment:
- MONGO_URL=mongodb://root:passwd@mongo:27017
ports:
- "4567:4567"
volumes:
- ./backend:/backend
networks:
- everwrite-network
depends_on:
- mongo
mongo:
image: mongo:latest
container_name: mongo-db
ports:
- "27017:27017"
networks:
- everwrite-network
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=passwd
volumes:
- ./backend/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
everwrite-network:
driver: bridge
name: everwrite-network
volumes:
mongo: