Add PostgreSQL / pgAdmin Docker compose file

This commit is contained in:
moshferatu 2023-11-24 06:59:11 -08:00
parent e8af59f0e7
commit 537d7af46e

25
postgresql.yaml Normal file
View File

@ -0,0 +1,25 @@
version: "3"
services:
postgresql:
image: postgres:latest
container_name: postgresql
restart: unless-stopped
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
POSTGRES_DB:
volumes:
- <docker directory>/postgresql/data:/var/lib/postgresql/data
ports:
- "5432:5432"
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:latest
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL:
PGADMIN_DEFAULT_PASSWORD:
volumes:
- <docker directory>/pgadmin:/var/lib/pgadmin
ports:
- "5050:80"