43 lines
865 B
YAML
43 lines
865 B
YAML
|
|
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
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
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
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
|
||
|
|
networks:
|
||
|
|
postgres:
|
||
|
|
driver: bridge
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
postgres:
|
||
|
|
pgadmin:
|