Skip to content

Commit fe0f6df

Browse files
rails healthcheck
1 parent a6b618c commit fe0f6df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/rails/compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ services:
1515
resources:
1616
reservations:
1717
memory: 1GB
18+
healthcheck:
19+
test: ["CMD", "curl", "-f", "http://localhost:3000"]
20+
interval: 10s
21+
timeout: 5s
22+
retries: 5
1823
db:
1924
restart: unless-stopped
2025
image: postgres:16

0 commit comments

Comments
 (0)