Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active June 18, 2019 14:59
Show Gist options
  • Save deeperunderstanding/7cc2f59dfc28269cb50c22e2574e7897 to your computer and use it in GitHub Desktop.
Save deeperunderstanding/7cc2f59dfc28269cb50c22e2574e7897 to your computer and use it in GitHub Desktop.
compose file with database added before adding volumes
version: '3'
services:
notebook:
build:
context: ./jupyter-notebook-docker
ports:
- "8888:8888"
depends_on:
- mlflow
environment:
MLFLOW_TRACKING_URI: 'http://mlflow:5000'
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment