Skip to content

Instantly share code, notes, and snippets.

@christianfosli
Last active July 28, 2020 20:53
Show Gist options
  • Save christianfosli/f3102c741527f486be2063ecc7e3090e to your computer and use it in GitHub Desktop.
Save christianfosli/f3102c741527f486be2063ecc7e3090e to your computer and use it in GitHub Desktop.
version: '3.8'
services:
db:
image: postgres
environment:
- POSTGRES_PASSWORD=secret
ports:
- '5432:5432'
admin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@example.com
- PGADMIN_DEFAULT_PASSWORD=secret
ports:
- '80:80'
@christianfosli
Copy link
Author

I run with docker-compose up -d, and then open http://localhost in the browser to access the postgres admin portal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment