Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active June 18, 2019 18:26
Show Gist options
  • Save deeperunderstanding/43a0efce8f653af0a235e37ee106e75d to your computer and use it in GitHub Desktop.
Save deeperunderstanding/43a0efce8f653af0a235e37ee106e75d to your computer and use it in GitHub Desktop.
The final docker-compose file
version: '3'
services:
notebook:
build:
context: ./jupyter-notebook-docker
ports:
- "8888:8888"
depends_on:
- mlflow
environment:
MLFLOW_TRACKING_URI: 'http://mlflow:5000'
volumes:
- file-store:/home/jovyan
mlflow:
build:
context: ./ml-flow-docker
expose:
- "5000"
ports:
- "5000:5000"
depends_on:
- postgres
postgres:
build:
context: ./postgres-docker
restart: always
environment:
POSTGRES_USER: 'admin'
POSTGRES_PASSWORD: 'secret'
ports:
- "5432:5432"
volumes:
- ./postgres-store:/var/lib/postgresql/data
volumes:
postgres-store:
file-store:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment