-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.08 KB
/
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
version: "3"
services:
server:
build:
context: ./server
dockerfile: Dockerfile.server
expose: ["${APP_SERVER_PORT}"]
environment:
API_HOST: ${API_HOST}
APP_SERVER_PORT: ${APP_SERVER_PORT}
ports:
- ${APP_SERVER_PORT}:${APP_SERVER_PORT}
volumes:
- ./server/src:/srv/app/server/src
depends_on:
- mongo
command: npm run dev
client:
build:
context: ./client
dockerfile: Dockerfile.web
environment:
- REACT_APP_PORT=${REACT_APP_PORT}
expose: ["${REACT_APP_PORT}"]
ports:
- ${REACT_APP_PORT}:${REACT_APP_PORT}
volumes:
- ./client/src:/srv/app/client/src
- ./client/public:/srv/app/client/public
links:
- server
command: npm run start
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
volumes:
- ./data-node:/data/db
# mongodb:
# image: mongo
# restart: always
# container_name: mongodb
# ports:
# - 27017:27017
# command: mongod --noauth --smallfiles
# networks:
# - webappnetwork