forked from thejmazz/UofTBiohacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
66 lines (61 loc) · 1.38 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '2.3'
services:
api:
build: ./server
# for prod, use node over nodemom
command: nodemon ./src/server.js
# for prod, no volume mounting source code
volumes:
- ./server/src:/home/node/src
ports:
- "4000:4000"
environment:
- MONGO_HOST=db
- SENDGRID_API_KEY
- JWT_SECRET
- ADMIN_PASS
- SPA_BASE_URL
- API_BASE_URL
- MONGO_DB
- MONGO_USER
- MONGO_PASS
db:
build: ./mongo
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_DB
- MONGO_USER
- MONGO_PASS
volumes:
- mongo-data:/data/db
- mongo-configdb:/data/configdb
frontend:
build:
context: ./static
target: dev
environment:
- API_BASE_URL
- RECAPTCHA_SITE_KEY
volumes:
- frontend-dist:/home/node/dist
- ./static/src:/home/node/src
- ./static/loaders:/home/node/loaders
- ./static/public:/home/node/public
- ./static/webpack.config.js:/home/node/webpack.config.js
- ./static/webpack.node.js:/home/node/webpack.node.js
command: webpack --watch
caddy:
image: abiosoft/caddy
volumes:
- ./Caddyfile.dev:/etc/Caddyfile
- frontend-dist:/srv
ports:
- 2015:2015
volumes:
mongo-data:
driver: local
mongo-configdb:
driver: local
frontend-dist:
driver: local