Last active
July 28, 2020 20:53
-
-
Save christianfosli/f3102c741527f486be2063ecc7e3090e to your computer and use it in GitHub Desktop.
postgres with docker-compose, minimal example for [stackoverflow](https://stackoverflow.com/questions/63132779/hot-to-connect-dockerized-asp-net-core-app-dockerized-postgresql)
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: '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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I run with
docker-compose up -d
, and then openhttp://localhost
in the browser to access the postgres admin portal