Skip to content

Instantly share code, notes, and snippets.

@ijaketak
Last active September 13, 2019 23:39
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 ijaketak/767d3c863c3ce5f0e322a71bddd84bec to your computer and use it in GitHub Desktop.
Save ijaketak/767d3c863c3ce5f0e322a71bddd84bec to your computer and use it in GitHub Desktop.
pgweb and PostgreSQL 11
version: '3'
services:
postgres:
image: postgres:11-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
container_name: postgres-db
volumes:
- ./data:/var/lib/postgresql/data
pgweb:
image: sosedoff/pgweb
environment:
DATABASE_URL: postgres://postgres:password@postgres:5432/postgres?sslmode=disable
ports:
- 8081:8081
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment