feat: health check for backend in docker-compose;

feat: go dockerfile preinstalls curl;
refactor: reduced go image size by using a 2 stage dockerfile;
refactor: switch frontend dockerfile
This commit is contained in:
2025-06-17 21:34:55 +03:00
parent 367647a8df
commit b4746cf18f
4 changed files with 53 additions and 19 deletions

View File

@@ -3,6 +3,13 @@ services:
backend:
build: ./backend
restart: unless-stopped
healthcheck:
test: ["CMD", "/usr/bin/curl", "-f", "http://localhost:8080/service/health"]
interval: 30s
timeout: 10s
retries: 3
ports:
- "8080:8080"
networks:
- easywish-network