Skip to content

Instantly share code, notes, and snippets.

@duongphuhiep
Created April 27, 2020 20:40
Show Gist options
  • Save duongphuhiep/0fae19a11af85021bb47ad8c19fc20c8 to your computer and use it in GitHub Desktop.
Save duongphuhiep/0fae19a11af85021bb47ad8c19fc20c8 to your computer and use it in GitHub Desktop.
docker compose postgres and pgadmin
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
@duongphuhiep
Copy link
Author

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