Forked from eliashussary/metabase-postgres.docker-compose.yml
Created
July 18, 2021 15:07
-
-
Save knightcn1983/89944bfd4905d666ddc7006aca5c9051 to your computer and use it in GitHub Desktop.
A docker-compose file for metabase with postgres.
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
| version: "3" | |
| services: | |
| postgres-db: | |
| image: postgres | |
| restart: always | |
| ports: | |
| - 5432:5432 | |
| environment: | |
| POSTGRES_PASSWORD: postgres | |
| PGDATA: /var/lib/postgresql/data | |
| volumes: | |
| # declare your mount volume /host/dir:/container/dir | |
| - /home/app/pgdata:/var/lib/postgresql/data | |
| metabase-app: | |
| image: metabase/metabase | |
| restart: always | |
| ports: | |
| - 3001:3000 | |
| volumes: | |
| # declare your mount volume /host/dir:/container/dir | |
| - /home/app/metabase-data:/metabase-data | |
| environment: | |
| MB_DB_TYPE: postgres | |
| MB_DB_DBNAME: metabase | |
| MB_DB_PORT: 5432 | |
| MB_DB_USER: metabase | |
| MB_DB_PASS: postgres | |
| MB_DB_HOST: postgres-db | |
| depends_on: | |
| - postgres-db | |
| links: | |
| - postgres-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment