🔧 update docker-compose configuration to include 'handheld-net' network and modify healthcheck settings for services
All checks were successful
CI / Lint (push) Successful in 21s
CI / Helm Lint (push) Successful in 6s
CI / Build (push) Successful in 1m52s
CI / Test (push) Successful in 44s

This commit is contained in:
Christian van Dijk
2026-02-23 23:17:18 +01:00
parent 59ddc66a8e
commit 0a78491587

View File

@@ -4,6 +4,8 @@ services:
context: ./devices-api context: ./devices-api
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: handheld-api container_name: handheld-api
networks:
- handheld-net
ports: ports:
- "8080:8080" - "8080:8080"
volumes: volumes:
@@ -24,15 +26,17 @@ services:
- REDIS_HOST=redis - REDIS_HOST=redis
- REDIS_PORT=6379 - REDIS_PORT=6379
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:8080/health/ready || exit 1"] test: ["CMD-SHELL", "wget -q -O - http://localhost:8080/health/live || exit 1"]
interval: 10s interval: 5s
timeout: 5s timeout: 5s
retries: 3 retries: 10
start_period: 10s start_period: 30s
postgres: postgres:
image: postgres:15-alpine image: postgres:15-alpine
container_name: handheld-postgres container_name: handheld-postgres
networks:
- handheld-net
ports: ports:
- "5432:5432" - "5432:5432"
environment: environment:
@@ -51,6 +55,8 @@ services:
redis: redis:
image: redis:7-alpine image: redis:7-alpine
container_name: handheld-redis container_name: handheld-redis
networks:
- handheld-net
ports: ports:
- "6379:6379" - "6379:6379"
healthcheck: healthcheck:
@@ -64,6 +70,8 @@ services:
context: ./frontend context: ./frontend
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: handheld-frontend container_name: handheld-frontend
networks:
- handheld-net
ports: ports:
- "8090:8090" - "8090:8090"
env_file: env_file:
@@ -85,6 +93,8 @@ services:
context: ./devices-worker context: ./devices-worker
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: handheld-worker container_name: handheld-worker
networks:
- handheld-net
volumes: volumes:
- ./devices-worker:/app - ./devices-worker:/app
env_file: env_file:
@@ -107,3 +117,7 @@ services:
interval: 10s interval: 10s
timeout: 3s timeout: 3s
retries: 3 retries: 3
networks:
handheld-net:
name: handheld-devices