-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·57 lines (52 loc) · 1001 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
53
54
55
56
57
version: "3"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 3000:3000
volumes:
- ./frontend/src:/usr/app/src
- ./frontend/public:/usr/app/public
depends_on:
- backend
environment:
- REACT_APP_SERVER=/backend
- CHOKIDAR_USEPOLLING=true
command: npm start
stdin_open: true
tty: true
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 4000:4000
volumes:
- ./backend:/usr/app/src
depends_on:
- db
environment:
- MONGO_URL=mongodb://db:27017
- CLIENT=http://localhost:4000
command: npm start
db:
image: mongo:5.0.5
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
nginx:
depends_on:
- backend
- frontend
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- "3050:80"
volumes:
mongo-data:
driver: local