postgres / pgadmin
This commit is contained in:
3
postgres/.gitignore
vendored
3
postgres/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
data/
|
||||
data_db/
|
||||
data_pgadmin/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user