From 537d7af46e440170d1598ca0c3a3c7aa1815e9be Mon Sep 17 00:00:00 2001 From: moshferatu Date: Fri, 24 Nov 2023 06:59:11 -0800 Subject: [PATCH] Add PostgreSQL / pgAdmin Docker compose file --- postgresql.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 postgresql.yaml diff --git a/postgresql.yaml b/postgresql.yaml new file mode 100644 index 0000000..6064cad --- /dev/null +++ b/postgresql.yaml @@ -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: + - /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: + - /pgadmin:/var/lib/pgadmin + ports: + - "5050:80" \ No newline at end of file