Skip to content

Commit b1673ea

Browse files
committed
add postgres database
1 parent 0835fbf commit b1673ea

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

samples/other/metabase/docker-compose.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,31 @@ services:
1010
interval: 1m30s
1111
timeout: 30s
1212
retries: 5
13+
environment:
14+
MB_DB_TYPE: "postgres"
15+
MB_DB_DBNAME: "metabase"
16+
MB_DB_PORT: "5432"
17+
MB_DB_USER: "metabase"
18+
MB_DB_PASS: "metabase"
19+
MB_DB_HOST: "raphaeltm-postgres"
1320
deploy:
1421
resources:
1522
reservations:
1623
cpus: "0.5"
1724
memory: 1024M
18-
# secrets:
19-
# - MB_DB_CONNECTION_URI
25+
postgres:
26+
image: "postgres:latest"
27+
environment:
28+
POSTGRES_DB: metabase
29+
POSTGRES_USER: metabase
30+
POSTGRES_PASSWORD: metabase
31+
healthcheck:
32+
test: ["CMD", "pg_isready", "-U", "metabase"]
33+
interval: 1m30s
34+
timeout: 30s
35+
retries: 5
36+
deploy:
37+
resources:
38+
reservations:
39+
cpus: "0.5"
40+
memory: 1024M

0 commit comments

Comments
 (0)