Skip to content

Instantly share code, notes, and snippets.

@hunzo
Last active April 25, 2024 04:05
Show Gist options
  • Save hunzo/71ede89e90f54f62767c2f3be5ef9993 to your computer and use it in GitHub Desktop.
Save hunzo/71ede89e90f54f62767c2f3be5ef9993 to your computer and use it in GitHub Desktop.
pgadmin
POSTGRES_READY=0
POSTGRES_DB=djangoDB
POSTGRES_PASSWORD=pgPassword
POSTGRES_USER=pgUser
POSTGRES_HOST=localhost
POSTGRES_PORT=5431
version: '3.9'
services:
db:
image: postgres:15.2-alpine3.17
restart: always
ports:
- 5431:5431
volumes:
- ./db:/var/lib/postgresql/data
env_file:
- .env
networks:
- net
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@email.local
- PGADMIN_DEFAULT_PASSWORD=pgadmin
ports:
- 8081:80
networks:
- net
networks:
net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment