postgres / pgadmin

This commit is contained in:
2023-07-12 19:40:37 +02:00
parent f14a8deaf4
commit 12d667297a
2 changed files with 20 additions and 8 deletions

3
postgres/.gitignore vendored
View File

@@ -1 +1,2 @@
data/
data_db/
data_pgadmin/

View File

@@ -2,16 +2,27 @@ version: "3"
services:
db:
image: postgres
image: postgres:15-alpine
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
- ./data_db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=foobar
adminer:
image: adminer
restart: always
- POSTGRES_PASSWORD=postgres
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
ports:
- 8432:8080
- "8432:80"
volumes:
- ./data_pgadmin:/var/lib/pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=pg@pg.com
- PGADMIN_DEFAULT_PASSWORD=postgres
# adminer:
# image: adminer
# restart: always
# ports:
# - 8432:8080