mirror of
https://github.com/acedanger/docker.git
synced 2025-12-06 05:40:11 -08:00
41 lines
915 B
YAML
41 lines
915 B
YAML
version: '3.5'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: postgres_container
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-acedanger}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
|
PGDATA: /data/postgres
|
|
volumes:
|
|
- postgres_data:/data/postgres
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
pgadmin:
|
|
container_name: pgadmin_container
|
|
image: dpage/pgadmin4
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-peter@peterwood.dev}
|
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
|
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
volumes:
|
|
- pgadmin_data:/var/lib/pgadmin
|
|
ports:
|
|
- "${PGADMIN_PORT:-5050}:80"
|
|
networks:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
postgres:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres_data:
|
|
pgadmin_data:
|