Skip to content

Instantly share code, notes, and snippets.

@eXtrem0us
Created July 11, 2020 04:24
Show Gist options
  • Save eXtrem0us/61518398e04b630c947c62bba8236383 to your computer and use it in GitHub Desktop.
Save eXtrem0us/61518398e04b630c947c62bba8236383 to your computer and use it in GitHub Desktop.
Metabase with Postgres
version: '3.6'
services:
metabase:
image: metabase/metabase:latest
container_name: metabase
#restart: always
deploy:
resources:
limits:
memory: 4G
ports:
- "3002:3000"
volumes:
- ./metabase-data:/metabase-data
environment:
#- MB_DB_FILE=/metabase-data/metabase.db
- JAVA_TOOL_OPTIONS=-Xmx4g
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS=hellopgmetabase
- MB_DB_HOST=postgresdb
postgresdb:
image: postgres:12.3
container_name: postgresdb
volumes:
- ./postgresdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=metabase
- POSTGRES_PASSWORD=hellopgmetabase
- POSTGRES_DB=metabase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment