Created
May 6, 2024 01:35
-
-
Save robconery/03fc1760bcb13d559d5e2c06f1f14741 to your computer and use it in GitHub Desktop.
Metabase Docker Compose
This file contains 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.9' | |
services: | |
metabase: | |
image: metabase/metabase:latest | |
container_name: metabase | |
hostname: metabase | |
volumes: | |
- /dev/urandom:/dev/random:ro | |
ports: | |
- 3000:3000 | |
environment: | |
MB_DB_TYPE: postgres | |
MB_DB_DBNAME: metabaseappdb | |
MB_DB_PORT: 5432 | |
MB_DB_USER: metabase | |
MB_DB_PASS: mysecretpassword | |
MB_DB_HOST: postgres | |
networks: | |
- metanet1 | |
healthcheck: | |
test: curl --fail -I http://localhost:3000/api/health || exit 1 | |
interval: 15s | |
timeout: 5s | |
retries: 5 | |
postgres: | |
image: postgres:latest | |
container_name: postgres | |
hostname: postgres | |
environment: | |
POSTGRES_USER: metabase | |
POSTGRES_DB: metabaseappdb | |
POSTGRES_PASSWORD: mysecretpassword | |
networks: | |
- metanet1 | |
networks: | |
metanet1: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment