udemy-complete-dbt-bootcamp/code_thingies/database/docker-compose.yaml

43 lines
811 B
YAML
Raw Normal View History

2023-10-27 10:05:53 +02:00
version: '3.5'
services:
postgres:
container_name: dbt_postgres
image: postgres:16
environment:
POSTGRES_USER: dbt_postgres_user
POSTGRES_PASSWORD: dbt_postgres_password
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
2023-10-27 10:05:53 +02:00
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin_user@email.com
PGADMIN_DEFAULT_PASSWORD: pgadmin_password
PGADMIN_CONFIG_SERVER_MODE: 'False'
MASTER_PASSWORD: amasterpasswordshouldbelong
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "12345:80"
networks:
- postgres
2023-10-27 10:05:53 +02:00
networks:
postgres:
driver: bridge
volumes:
postgres:
pgadmin: