Skip to content

Commit

Permalink
infra: add railway.json for deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
  • Loading branch information
championswimmer committed Feb 19, 2024
1 parent a5af1ca commit 0895518
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .idea/jsonSchemas.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions metabase/railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"/metabase/**"
]
},
"deploy": {
"numReplicas": 1,
"restartPolicyMaxRetries": 3,
"healthcheckPath": "/api/health",
"healthcheckTimeout": 300
}
}
17 changes: 17 additions & 0 deletions railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"Dockerfile",
"go.mod",
"go.sum",
"src/**",
"public_html/**",
"*.env"
]
},
"deploy": {
"numReplicas": 1,
"restartPolicyMaxRetries": 3
}
}

0 comments on commit 0895518

Please sign in to comment.