-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (35 loc) · 1.26 KB
/
docker-compose.dev.yml
File metadata and controls
36 lines (35 loc) · 1.26 KB
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
# Docker-compose setup for local development. This allows for a user
# to modify the Alfalfa worker code and run tests in the Docker
# container without needing to rebuild/restart Docker.
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build
services:
web: # main haystack application
container_name: alfalfa_web
build:
# the purpose of context one level above dockerfile
# is to utilize shared code, specifically in db
dockerfile: alfalfa_web/Dockerfile
context: .
# The dev instance still needs works, so default to base for now
target: dev
environment:
- NODE_ENV=development
volumes:
- ./alfalfa_web:/srv/alfalfa
# create volumes for the build and node_modules so that
# the resources are not copied back to the local host when
# mounting.
- /srv/alfalfa/build
- /srv/alfalfa/node_modules
worker:
build:
# the purpose of context one level above is to install the entire alfalfa package
# and to copy the wait-for-it.sh and start_worker.sh files in the deploy directory
dockerfile: alfalfa_worker/Dockerfile
context: .
target: dev
volumes:
- ./alfalfa_worker:/alfalfa/alfalfa_worker
- ./tests:/alfalfa/tests