Created
April 27, 2020 20:40
-
-
Save duongphuhiep/0fae19a11af85021bb47ad8c19fc20c8 to your computer and use it in GitHub Desktop.
docker compose postgres and pgadmin
This file contains hidden or 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' | |
services: | |
pg: | |
image: postgres | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=root | |
- POSTGRES_PASSWORD=root | |
volumes: | |
- //C/docker-volume/pg:/var/lib/postgresql/data | |
pgadmin: | |
image: "dpage/pgadmin4" | |
ports: | |
- "5480:80" | |
- "5443:443" | |
environment: | |
- [email protected] | |
- PGADMIN_DEFAULT_PASSWORD=root | |
volumes: | |
- //C/docker-volume/pgadmin:/var/lib/pgadmin | |
depends_on: | |
- pg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
similar: https://github.com/khezen/compose-postgres