Skip to content

Commit 0835fbf

Browse files
committed
metabase example
1 parent 244850b commit 0835fbf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

samples/other/metabase/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Deploy Metabase with Defang
2+
3+
This is a simple example of how to deploy Metabase with Defang.
4+
5+
Note that this is a very simple example and should not be used in production. If you want to run a basic production setup, you need a database (e.g. PostgreSQL). You can set the `MB_DB_CONNECTION_URI` secret using `defang secret set --name MB_DB_CONNECTION_URI` and uncomment the `secrets` section of the `docker-compose.yml` file.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '3.9'
2+
services:
3+
metabase:
4+
image: "metabase/metabase:latest"
5+
ports:
6+
- mode: ingress
7+
target: 3000
8+
healthcheck:
9+
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health" ]
10+
interval: 1m30s
11+
timeout: 30s
12+
retries: 5
13+
deploy:
14+
resources:
15+
reservations:
16+
cpus: "0.5"
17+
memory: 1024M
18+
# secrets:
19+
# - MB_DB_CONNECTION_URI

0 commit comments

Comments
 (0)