40 lines
944 B
YAML
40 lines
944 B
YAML
services:
|
|
postgres:
|
|
image: postgres:18
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-backend}
|
|
POSTGRES_USER: ${POSTGRES_USER:-admin}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-testing123}
|
|
PGDATA: /data/postgres
|
|
volumes:
|
|
- postgres:/data/postgres
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
pgadmin:
|
|
image: dpage/pgadmin4:9.10
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
|
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
|
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
|
volumes:
|
|
- pgadmin:/var/lib/pgadmin
|
|
- ./pgadmin.json:/pgadmin4/servers.json
|
|
ports:
|
|
- "${PGADMIN_PORT:-5050}:80"
|
|
networks:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
postgres:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres:
|
|
pgadmin:
|