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: services:
db: db:
image: postgres image: postgres:15-alpine
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
- ./data:/var/lib/postgresql/data - ./data_db:/var/lib/postgresql/data
environment: environment:
- POSTGRES_PASSWORD=foobar - POSTGRES_PASSWORD=postgres
adminer: pgadmin:
image: adminer image: dpage/pgadmin4
restart: always restart: unless-stopped
ports: 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