feat: add pgadmin to deployment
This commit is contained in:
@@ -10,3 +10,7 @@ DAGSTER_POSTGRES_URL=postgresql://dagster:changeme@postgres:5432/dagster
|
|||||||
|
|
||||||
# ── dbt profile target (overrides profiles.yml env_var defaults) ─────────────
|
# ── dbt profile target (overrides profiles.yml env_var defaults) ─────────────
|
||||||
DBT_TARGET=dev
|
DBT_TARGET=dev
|
||||||
|
|
||||||
|
# ── pgAdmin ──────────────────────────────────────────────────────────────────
|
||||||
|
PGADMIN_EMAIL=admin@example.com
|
||||||
|
PGADMIN_PASSWORD=changeme
|
||||||
|
|||||||
@@ -76,6 +76,25 @@ services:
|
|||||||
dagster-usercode:
|
dagster-usercode:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
# pgAdmin web UI
|
||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4:latest
|
||||||
|
container_name: pgadmin
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- pgadmin-data:/var/lib/pgadmin
|
||||||
|
- ./pgadmin/servers.json:/pgadmin4/servers.json:ro
|
||||||
|
ports:
|
||||||
|
- "5050:80"
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres-data:
|
postgres-data:
|
||||||
dbt-target:
|
dbt-target:
|
||||||
|
pgadmin-data:
|
||||||
|
|||||||
13
pgadmin/servers.json
Normal file
13
pgadmin/servers.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"Servers": {
|
||||||
|
"1": {
|
||||||
|
"Name": "data-platform",
|
||||||
|
"Group": "Servers",
|
||||||
|
"Host": "postgres",
|
||||||
|
"Port": 5432,
|
||||||
|
"MaintenanceDB": "postgres",
|
||||||
|
"Username": "dagster",
|
||||||
|
"SSLMode": "prefer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user