Skip to content

Instantly share code, notes, and snippets.

@dijeesh
Created February 4, 2019 09:56
Show Gist options
  • Select an option

  • Save dijeesh/5c0b915fb6b428a92d9fc9175d55dae3 to your computer and use it in GitHub Desktop.

Select an option

Save dijeesh/5c0b915fb6b428a92d9fc9175d55dae3 to your computer and use it in GitHub Desktop.
docker-compose-metabase-postgress
version: '3'
services:
db:
container_name: db
image: postgres:9.6
restart: always
volumes:
- "/data/metabase/pgdata:/var/lib/postgresql/data"
ports:
- "5432:5432"
environment:
- POSTGRES_DB=metabase
- POSTGRES_USER=metabase
- POSTGRES_PASSWORD=xxxxxx
networks:
- metabase
metabase:
container_name: metabase-app
image: metabase/metabase:latest
restart: always
volumes:
- "/data/metabase/metabase-data:/metabase-data"
ports:
- "3000:3000"
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS= xxxxxx
- MB_DB_HOST=db
networks:
- metabase
networks:
metabase:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment