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 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 networks: postgres: driver: bridge volumes: postgres: pgadmin: