-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 800 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 800 Bytes
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
version: '2'
services:
api:
container_name: api
restart: always
build: ./api
ports:
- '4000:4000'
links:
- mongo
environment:
- NODE_ENV=development
- JWT_KEY=LookAtMeImASecret
- MONGO_URI=mongodb://mongo:27017/graphql-start
- MONGO_NAME=graphql-start
command: yarn start:watch
mongo:
container_name: mongo
image: mongo
volumes:
- ./data:/data/db
ports:
- '27017:27017'
web:
container_name: web
build: ./web
ports:
- '3000:3000'
environment:
- NODE_ENV=development
- REACT_APP_API_URI=http://localhost:4000/
command: yarn start