mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2026-06-11 14:26:17 +00:00
32 lines
629 B
YAML
32 lines
629 B
YAML
|
|
name: postgres
|
||
|
|
|
||
|
|
services:
|
||
|
|
postgres:
|
||
|
|
container_name: postgres
|
||
|
|
image: postgres:17.6
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- 5432:5432
|
||
|
|
environment:
|
||
|
|
POSTGRES_PASSWORD: postgres
|
||
|
|
POSTGRES_USER: postgres
|
||
|
|
volumes:
|
||
|
|
- ./postgres:/var/lib/postgresql/data
|
||
|
|
|
||
|
|
pgadmin:
|
||
|
|
container_name: pgadmin
|
||
|
|
image: dpage/pgadmin4:2025-09-02-1
|
||
|
|
environment:
|
||
|
|
PGADMIN_DEFAULT_EMAIL: admin@pgadmin.com
|
||
|
|
PGADMIN_DEFAULT_PASSWORD: password
|
||
|
|
PGADMIN_LISTEN_PORT: 80
|
||
|
|
ports:
|
||
|
|
- 15433:80
|
||
|
|
volumes:
|
||
|
|
- pgadmin:/var/lib/pgadmin
|
||
|
|
depends_on:
|
||
|
|
- postgres
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
pgadmin:
|