Last active
September 4, 2025 01:14
-
-
Save paulo-amaral/1f4af6751eaf0920ef00e9eb07e3c9ae to your computer and use it in GitHub Desktop.
Docker config for Metabase including pgadmin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| metadb: | |
| image: postgres:16 | |
| container_name: metadb | |
| environment: | |
| POSTGRES_USER: mbuser | |
| POSTGRES_PASSWORD: mbpass | |
| POSTGRES_DB: my_db | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - metadb_data:/var/lib/postgresql/data | |
| - ./data:/csv # put the CSV for analysis here | |
| metabase: | |
| image: metabase/metabase:latest | |
| container_name: metabase | |
| depends_on: [metadb] | |
| ports: | |
| - "3000:3000" | |
| environment: | |
| # store Metabase metadata in Postgres (so it persists) | |
| MB_DB_TYPE: postgres | |
| MB_DB_DBNAME: metabase | |
| MB_DB_PORT: 5432 | |
| MB_DB_USER: mbuser | |
| MB_DB_PASS: mbpass | |
| MB_DB_HOST: metadb | |
| pgadmin: | |
| image: dpage/pgadmin4:latest | |
| container_name: pgadmin | |
| depends_on: [metadb] | |
| environment: | |
| PGADMIN_DEFAULT_EMAIL: admin@example.com | |
| PGADMIN_DEFAULT_PASSWORD: admin | |
| ports: | |
| - "5050:80" | |
| volumes: | |
| metadb_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment