Skip to content

Commit ca40d90

Browse files
author
root
committed
needed to tweek this to fix health check
1 parent c65d760 commit ca40d90

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ services:
2323
dockerfile: ./backend/Dockerfile
2424
expose:
2525
- "3001"
26-
ports:
27-
- "127.0.0.1:3001:3000" # For debugging - access backend directly
2826
networks:
2927
splitflap-net:
3028
aliases:
3129
- backend # Ensure this hostname is accessible in the network
3230
# Add healthcheck to ensure the service is running properly
3331
healthcheck:
34-
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/health"]
32+
test: ["CMD", "wget", "--spider", "-q", "http://backend:3001/health"]
3533
interval: 10s
3634
timeout: 5s
3735
retries: 3

0 commit comments

Comments
 (0)