Created
August 12, 2022 08:29
-
-
Save imran-vz/d440f8c4f43105e361359971cc9756b8 to your computer and use it in GitHub Desktop.
Use PgAdmin with docker compose. You can access it on http://pgAdmin.localhost
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: | |
proxy: | |
image: traefik:v2.8 | |
command: | |
- --api.insecure=true | |
- --providers.docker | |
ports: | |
- "80:80" | |
- "8080:8080" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
pgAdmin: | |
image: dpage/pgadmin4:latest | |
restart: always | |
labels: | |
- "traefik.http.routers.pgAdmin.rule=Host(pgAdmin.localhost)" | |
environment: | |
- [email protected] | |
- PGADMIN_DEFAULT_PASSWORD=password | |
volumes: | |
- ./pgadmin_data:/var/lib/pgadmin:rw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment