added healthchecks and removed exposed password from compose.yaml
This commit is contained in:
@@ -29,6 +29,7 @@ services:
|
||||
|
||||
networks:
|
||||
- reverse_proxy_default
|
||||
- postgre-general
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
@@ -39,6 +40,15 @@ services:
|
||||
ports:
|
||||
- "2001:22"
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/api/healthz || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
networks:
|
||||
reverse_proxy_default:
|
||||
external: true
|
||||
postgre-general:
|
||||
external: true
|
||||
Reference in New Issue
Block a user