forked from hqtan/seechange-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (40 loc) · 1.13 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
# To start all app containers and have them talking to each other, in the
# root folder /, run 'docker-compose up'.
# Refer to /README.md for more project information.
# Docker Compose File Format Version.
version: "3.7"
services:
server:
build:
context: ./server
volumes:
- ./server/:/usr/src/app
- /usr/src/app/node_modules # Required to persist node_modules between container stop/starts.
ports:
- 5000:5000
# depends_on:
# - mongo
env_file: ./server/.env
# May uncomment mongo service later if DB is required.
# mongo:
# image: mongo
# volumes:
# - data-volume:/data/db
# ports:
# - "27017:27017"
client:
build:
context: ./client
# This will force server service to build and start before client.
depends_on:
- server
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules # Required to persist node_modules between container stop/starts.
ports:
- 3000:3000
environment:
CHOKIDAR_USEPOLLING: "true"
# This is for persisting mongo data between container stop/starts.
# volumes:
# data-volume: