diff --git a/.idea/jsonSchemas.xml b/.idea/jsonSchemas.xml new file mode 100644 index 0000000..2185cd7 --- /dev/null +++ b/.idea/jsonSchemas.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index ae687c6..60fe077 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -74,11 +74,6 @@ services: MB_DB_HOST: postgres MB_EMOJI_IN_LOGS: "true" MB_JETTY_PORT: 3232 - healthcheck: - test: [ "CMD-SHELL", "pg_isready -U postgres metabase" ] - interval: 3s - timeout: 3s - retries: 3 expose: - "3232" ports: diff --git a/metabase/railway.json b/metabase/railway.json new file mode 100644 index 0000000..fd86faa --- /dev/null +++ b/metabase/railway.json @@ -0,0 +1,14 @@ +{ + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "/metabase/**" + ] + }, + "deploy": { + "numReplicas": 1, + "restartPolicyMaxRetries": 3, + "healthcheckPath": "/api/health", + "healthcheckTimeout": 300 + } +} \ No newline at end of file diff --git a/railway.json b/railway.json new file mode 100644 index 0000000..1b0d43c --- /dev/null +++ b/railway.json @@ -0,0 +1,17 @@ +{ + "build": { + "builder": "DOCKERFILE", + "watchPatterns": [ + "Dockerfile", + "go.mod", + "go.sum", + "src/**", + "public_html/**", + "*.env" + ] + }, + "deploy": { + "numReplicas": 1, + "restartPolicyMaxRetries": 3 + } +} \ No newline at end of file