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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user