Skip to content

Instantly share code, notes, and snippets.

@mdsami
Created May 26, 2024 21:46
Show Gist options
  • Save mdsami/f115904f6babc176e982a088cbede03b to your computer and use it in GitHub Desktop.
Save mdsami/f115904f6babc176e982a088cbede03b to your computer and use it in GitHub Desktop.
metabase docker stack
version: '3'
services:
metabase:
image: metabase/metabase
ports:
- "8090:3000"
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS=password
- MB_DB_HOST=postgres
depends_on:
- postgres
postgres:
image: postgres
environment:
- POSTGRES_DB=metabase
- POSTGRES_USER=metabase
- POSTGRES_PASSWORD=password
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
@mdsami
Copy link
Author

mdsami commented May 26, 2024

docker volume create metabase_db-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment