Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions caprover/one-click-apps/v4/apps/metabase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
captainVersion: 4
services:
# Metabase
$$cap_appname:
metabase:
image: metabase/metabase:$$cap_mb_version
container_name: metabase
hostname: metabase
volumes:
- /dev/urandom:/dev/random:ro
- $$cap_appname-data:/metabase-data
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabaseappdb
MB_DB_PORT: 5432
MB_DB_USER: metabase
MB_DB_PASS: $$cap_db_pass
MB_DB_HOST: srv-captain--$$cap_appname-db
MB_EMAIL_SMTP_HOST: $$cap_smtp_host
MB_EMAIL_SMTP_PORT: $$cap_smtp_port
MB_EMAIL_SMTP_USERNAME: $$cap_smtp_user
MB_EMAIL_SMTP_PASSWORD: $$cap_smtp_pass
healthcheck:
test: curl --fail -I http://localhost:3000/api/health || exit 1
interval: 15s
timeout: 5s
retries: 5
caproverExtra:
containerHttpPort: '3000'
$$cap_appname-db:
image: postgres:12-alpine
volumes:
- $$cap_appname-db:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: metabase
POSTGRES_PASSWORD: $$cap_db_pass
POSTGRES_DB: metabase
caproverExtra:
notExposeAsWebApp: 'true'
caproverOneClickApp:
variables:
- id: $$cap_mb_version
label: Metabase Version
defaultValue: 'v0.55.10.x'
description: Check out their docker page for the valid tags https://hub.docker.com/r/metabase/metabase/tags

- id: $$cap_db_pass
label: Database Password
defaultValue: $$cap_gen_random_hex(16)

- id: $$cap_smtp_host
label: SMTP Host
description: OPTIONAL

- id: $$cap_smtp_port
label: SMTP Port
description: OPTIONAL

- id: $$cap_smtp_user
label: SMTP User
description: OPTIONAL

- id: $$cap_smtp_pass
label: SMTP Password
description: OPTIONAL
instructions:
start: >-
Metabase is the easy, open source way for everyone in your company to ask questions and learn from data.
end: >-
Aaaand you're done! 😄
Your service is available at http://$$cap_appname.$$cap_root_domain
displayName: 'Metabase'
isOfficial: true
description: Metabase is the easy, open source way for everyone in your company to ask questions and learn from data.
documentation: https://www.metabase.com/docs/latest/operations-guide/running-metabase-on-docker.html
Binary file added caprover/one-click-apps/v4/logos/metabase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.