forked from NTUEEInfoDep/NTUEECourseWebsite2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_dev.yml
46 lines (41 loc) · 868 Bytes
/
docker-compose_dev.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
# This file is used for development, not for production!
version: "3.4"
services:
frontend:
build:
context: .
dockerfile: ./dev-support/frontend/Dockerfile
ports:
- "3000:3000"
environment:
- REACT_APP_API_HOST=backend
volumes:
- .:/app
- /app/node_modules
links:
- "backend"
backend:
build:
context: .
dockerfile: ./dev-support/backend/Dockerfile
ports:
- "8000:8000"
environment:
- DISTRIBUTE_SERVER_HOST=distribute-server
- DISTRIBUTE_SERVER_PORT=8001
links:
- "distribute-server"
mongodb:
image: mongo
ports:
- "27017:27017"
redisdb:
image: redis
ports:
- "6379:6379"
distribute-server:
build:
context: .
dockerfile: ./dev-support/distribute-server/Dockerfile
ports:
- "8001:8001"