Update healthcheck and port mapping in docker-compose
This commit is contained in:
1 parent
ba8265f820
commit
1ef1429466
1 file changed
+2
-2
+2
-2
@@ -2,10 +2,10 @@ services:
|
||||
pss:
|
||||
build: .
|
||||
ports:
|
||||
- "${PORT:-3000}"
|
||||
- "${PORT:-3000}:80"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in new issue
Block a user