postgres-service/environments/dev.yaml

34 lines
778 B
YAML

version: '3.8'
services:
postgres:
environment:
POSTGRES_USER: postgres_dev
POSTGRES_PASSWORD: postgres_dev_password
POSTGRES_DB: postgres_dev
ports:
- "5432:5432"
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- ./config/postgres-dev.conf:/etc/postgresql/postgresql.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
pgadmin:
environment:
PGADMIN_DEFAULT_EMAIL: dev@example.com
PGADMIN_DEFAULT_PASSWORD: pgadmin_dev_password
ports:
- "5050:80"
volumes:
- pgadmin_data_dev:/var/lib/pgadmin
volumes:
postgres_data_dev:
name: postgres_data_dev
pgadmin_data_dev:
name: pgadmin_data_dev
networks:
postgres_network:
name: postgres_network_dev