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-29 18:43:50 +01:00
|
|
|
|
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-29 18:43:50 +01:00
|
|
|
|
2023-10-27 10:05:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
postgres:
|
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres:
|
|
|
|
|
pgadmin:
|