Created
July 2, 2019 13:51
-
-
Save francoisruty/91f6ce07afe71f63168df1ee82b3aec8 to your computer and use it in GitHub Desktop.
fruty_strategy-consulting-data-science
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
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