Skip to content

Instantly share code, notes, and snippets.

@imran-vz
Created August 12, 2022 08:29
Show Gist options
  • Save imran-vz/d440f8c4f43105e361359971cc9756b8 to your computer and use it in GitHub Desktop.
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
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