11services :
22 metabase :
3- build :
4- context : .
5- dockerfile : metabase/Dockerfile
3+ image : metabase/metabase-enterprise:v1.55.x
64 environment :
7- MB_CONFIG_FILE_PATH : " ./app/init- config.yml"
5+ MB_CONFIG_FILE_PATH : " ./app/config.yml"
86 MB_JETTY_PORT : " ${MB_PORT}"
97 MB_EDITION : " ee"
108 MB_SITE_URL : " http://localhost:${MB_PORT}/"
119 MB_JWT_SHARED_SECRET : " ${METABASE_JWT_SHARED_SECRET}"
1210 MB_SETUP_TOKEN : " ${PREMIUM_EMBEDDING_TOKEN}"
1311 MB_PREMIUM_EMBEDDING_TOKEN : " ${PREMIUM_EMBEDDING_TOKEN}"
12+ MB_RUN_MODE : " ${MB_RUN_MODE}"
13+ METASTORE_DEV_SERVER_URL : " ${METASTORE_DEV_SERVER_URL}"
1414 MB_JWT_IDENTITY_PROVIDER_URI : " http://localhost:${AUTH_PROVIDER_PORT}/sso/metabase"
1515 healthcheck :
1616 test : curl --fail -X GET -I "http://localhost:${MB_PORT}/api/health" || exit 1
@@ -19,6 +19,8 @@ services:
1919 retries : 10
2020 ports :
2121 - " ${MB_PORT}:${MB_PORT}"
22+ volumes :
23+ - ./metabase/config.yml:/app/config.yml
2224
2325 next-sample-app-router :
2426 depends_on :
@@ -38,6 +40,11 @@ services:
3840 NEXT_PUBLIC_METABASE_INSTANCE_URL : " http://localhost:${MB_PORT}"
3941 METABASE_INSTANCE_URL : " http://metabase:${MB_PORT}"
4042 METABASE_JWT_SHARED_SECRET : " ${METABASE_JWT_SHARED_SECRET}"
43+ healthcheck :
44+ test : curl --fail -X GET -I "http://localhost:${CLIENT_PORT_APP_ROUTER}/" || exit 1
45+ interval : 2s
46+ timeout : 2s
47+ retries : 5
4148 ports :
4249 - " ${CLIENT_PORT_APP_ROUTER}:${CLIENT_PORT_APP_ROUTER}"
4350 volumes :
@@ -51,7 +58,7 @@ services:
5158 context : .
5259 dockerfile : ./next-sample-pages-router/Dockerfile
5360 args :
54- PORT : " ${CLIENT_PORT_APP_ROUTER }"
61+ PORT : " ${CLIENT_PORT_PAGES_ROUTER }"
5562 NEXT_PUBLIC_METABASE_INSTANCE_URL : " http://localhost:${MB_PORT}"
5663 METABASE_INSTANCE_URL : " http://metabase:${MB_PORT}"
5764 METABASE_JWT_SHARED_SECRET : " ${METABASE_JWT_SHARED_SECRET}"
@@ -61,6 +68,11 @@ services:
6168 NEXT_PUBLIC_METABASE_INSTANCE_URL : " http://localhost:${MB_PORT}"
6269 METABASE_INSTANCE_URL : " http://metabase:${MB_PORT}"
6370 METABASE_JWT_SHARED_SECRET : " ${METABASE_JWT_SHARED_SECRET}"
71+ healthcheck :
72+ test : curl --fail -X GET -I "http://localhost:${CLIENT_PORT_PAGES_ROUTER}/" || exit 1
73+ interval : 2s
74+ timeout : 2s
75+ retries : 5
6476 ports :
6577 - " ${CLIENT_PORT_PAGES_ROUTER}:${CLIENT_PORT_PAGES_ROUTER}"
6678 volumes :
0 commit comments