feat: add metabase
feat: consistent container names fix: for services, you only need to add basicauth label, others are added by coolify fix: label uuids are not randomly generated all the time fix: changing force https will change the labels
This commit is contained in:
35
templates/compose/metabase.yaml
Normal file
35
templates/compose/metabase.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# documentation: https://www.metabase.com/docs/latest/installation-and-operation/running-metabase-on-docker
|
||||
# slogan: Fast analytics with the friendly UX and integrated tooling to let your company explore data on their own.
|
||||
# tags: analytics,bi,business,intelligence
|
||||
|
||||
services:
|
||||
metabase:
|
||||
image: metabase/metabase:latest
|
||||
volumes:
|
||||
- /dev/urandom:/dev/random:ro
|
||||
environment:
|
||||
- SERVICE_FQDN_METABASE
|
||||
- MB_DB_TYPE=postgres
|
||||
- MB_DB_HOST=postgresql
|
||||
- MB_DB_PORT=5432
|
||||
- MB_DB_DBNAME=${POSTGRESQL_DATABASE:-metabase}
|
||||
- MB_DB_USER=$SERVICE_USER_POSTGRESQL
|
||||
- MB_DB_PASS=$SERVICE_PASSWORD_POSTGRESQL
|
||||
healthcheck:
|
||||
test: curl --fail -I http://localhost:3000/api/health || exit 1
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
postgresql:
|
||||
image: postgres:16-alpine
|
||||
volumes:
|
||||
- metabase-postgresql-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
|
||||
- POSTGRES_DB=${POSTGRESQL_DATABASE:-metabase}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
Reference in New Issue
Block a user