-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
23 lines (21 loc) · 990 Bytes
/
docker-compose.yml
File metadata and controls
23 lines (21 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
webserver:
build: ./docker_files/node
ports:
- "8000:8000"
# working_dir must match dir we mount host volume to
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
# install bower, node packages, and starts server
# --unsafe-perm option needed on npm to install bower correctly w/docker
# --allow-root needed when using bower w/docker
# Note: Currently, portal_init.sh only sets basic environment vars for dev environment.
# It will only run if PORTAL_ROOT environment var does not exist.
# It should only be run once, when project first installed.
command: bash -c "bash portal_init.sh && npm install -g bower --unsafe-perm && npm update --unsafe-perm && bower --allow-root install && npm install -g gulp && gulp clean:config && gulp config:local && npm start"
elasticsearch:
build: ./docker_files/elasticsearch
ports:
- "9200:9200"
# enable CORS
command: elasticsearch -Des.http.cors.enabled=true -Des.http.cors.allow-origin="*"