forked from frenata/xaqt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cw|frenata#5] add docker-compose and .env files
Major Changes: * add docker-compose.yml for orchestrating building and running containers * add .env file for setting environment variables inside docker containers TODO: * integrate test code to run on container startup * create shared volumes for input/output between api server and compilebox
- Loading branch information
connorwalsh
committed
Mar 10, 2018
1 parent
bbdbb86
commit cecaf19
Showing
5 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# API server vars | ||
COMPILEBOX_API_SERVER_PORT=31337 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '2' | ||
services: | ||
compilebox_api_server: | ||
build: | ||
context: . | ||
env_file: .env | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock # use host Docker daemon | ||
ports: | ||
- "${COMPILEBOX_API_SERVER_PORT}:${COMPILEBOX_API_SERVER_PORT}" | ||
depends_on: | ||
- compilebox | ||
compilebox: | ||
env_file: .env | ||
build: | ||
context: ./Setup/ | ||
command: echo "compilebox build complete" |