mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-14 11:23:02 +02:00
29 lines
560 B
YAML
29 lines
560 B
YAML
version: '2'
|
|
|
|
services:
|
|
|
|
metabase:
|
|
image: metabase/metabase
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- MB_DB_TYPE=postgres
|
|
- MB_DB_DBNAME=metabase
|
|
- MB_DB_HOST=postgres
|
|
- MB_DB_PORT=5432
|
|
- MB_DB_USER=root
|
|
- MB_DB_PASS=root
|
|
depends_on:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: postgres:alpine
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=root
|
|
- POSTGRES_PASSWORD=root
|
|
- POSTGRES_DB=metabase
|
|
restart: unless-stopped
|