Skip to content

Instantly share code, notes, and snippets.

@francoisruty
Created July 2, 2019 13:51
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 francoisruty/91f6ce07afe71f63168df1ee82b3aec8 to your computer and use it in GitHub Desktop.
Save francoisruty/91f6ce07afe71f63168df1ee82b3aec8 to your computer and use it in GitHub Desktop.
fruty_strategy-consulting-data-science
version: '2'
services:
worker:
build: .
environment:
PG_DATABASE: ${PG_DATABASE}
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
volumes:
- ./:/workspace
postgres:
image: mdillon/postgis:10
environment:
POSTGRES_DB: ${PG_DATABASE}
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./data:/data
- ./db:/init
pgweb:
image: sosedoff/pgweb
command: pgweb --readonly --bind=0.0.0.0 --listen=8081
ports: ["8000:8081"]
links:
- postgres:postgres
environment:
- DATABASE_URL=postgres://${PG_USER}:${PG_PASSWORD}@postgres:5432/${PG_DATABASE}?sslmode=disable
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment