Skip to content

Instantly share code, notes, and snippets.

@cereniyim
Created June 6, 2020 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cereniyim/ec2f481d7702ac64912eafff25b6d708 to your computer and use it in GitHub Desktop.
Save cereniyim/ec2f481d7702ac64912eafff25b6d708 to your computer and use it in GitHub Desktop.
docker compose for wine rating predictor
version: '2'
services:
luigid:
image: code-challenge/orchestrator:latest
build:
context: ./orchestrator
command: luigid
ports:
- "8082:8082"
orchestrator:
image: code-challenge/orchestrator:latest
depends_on:
- luigid
environment:
- PROJECT_ROOT=$PWD
- PIPELINE_VERSION=0.1
# TODO: Potentially adjust the network depending on your compose version!
# - ORCHESTRATOR_NETWORK=code-challenge-2020_default
- ORCHESTRATOR_NETWORK=wine-rating-predictor-ml-model_default
volumes:
- ./data_root:/usr/share/data/ # Mount data directory
- /var/run/docker.sock:/var/run/docker.sock # Mount docker socker
- ./orchestrator:/opt/orchestrator # Mount code for faster development
build:
context: ./orchestrator
# TODO: Replace with EvaluateModel task
# run EvaluateModel task and monitor on web-based interface
command: luigi --module task EvaluateModel --scheduler-host luigid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment