chore: Update Docker configuration and documentation
Some checks failed
API Docs (Node.js Express) / test (20) (push) Failing after 1m49s
API Docs (Node.js Express) / build (push) Has been skipped
API Gateway (Java Spring Boot) / test (17) (push) Failing after 3m18s
Docker Build and Push / setup (push) Successful in 10s
API Gateway (Java Spring Boot) / test (21) (push) Successful in 1m56s
API Gateway (Java Spring Boot) / build (push) Has been skipped
Docker Build and Push / build-push-service-adapters (push) Failing after 29s
Docker Build and Push / build-push-api-gateway (push) Failing after 32s
Docker Build and Push / build-push-api-docs (push) Failing after 31s
Docker Build and Push / build-push-frontend (push) Failing after 28s
Docker Build and Push / test-compatibility (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 2m47s
Integration Tests / performance-tests (push) Has been skipped

### Summary of Changes
- Enhanced `docker-compose` files to include BuildKit compatibility settings for improved caching during builds.
- Updated service definitions to use pre-built images from the specified Docker registry, ensuring consistency across environments.
- Added Docker registry configuration to the `.env` example file for clarity on deployment settings.
- Revised the `README.md` to include instructions for using pre-built images and local development setups, along with Docker compatibility troubleshooting steps.
- Introduced health checks in the `Dockerfile` for the API Docs service to ensure container readiness.

### Expected Results
- Improved build performance and deployment clarity, facilitating easier setup for new developers and enhancing overall project maintainability.
This commit is contained in:
GSRN
2025-09-18 00:28:21 +02:00
parent af33bc2d20
commit 7bb753e293
10 changed files with 361 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ version: '3.8'
services:
# Database
postgres:
image: postgres:latest
image: postgres:14
environment:
POSTGRES_DB: labfusion
POSTGRES_USER: labfusion
@@ -27,9 +27,7 @@ services:
# Java Spring Boot API Gateway
api-gateway:
build:
context: ./services/api-gateway
dockerfile: Dockerfile
image: gittea.kammenstraatha.duckdns.org/admin/api-gateway:main
ports:
- "8080:8080"
environment:
@@ -38,6 +36,7 @@ services:
- SPRING_DATASOURCE_PASSWORD=labfusion_password
- REDIS_HOST=redis
- REDIS_PORT=6379
- SPRING_PROFILES_ACTIVE=prod
depends_on:
- postgres
- redis
@@ -46,9 +45,7 @@ services:
# Python FastAPI Service Adapters
service-adapters:
build:
context: ./services/service-adapters
dockerfile: Dockerfile
image: gittea.kammenstraatha.duckdns.org/admin/service-adapters:main
ports:
- "8000:8000"
environment:
@@ -63,9 +60,7 @@ services:
# React Frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: gittea.kammenstraatha.duckdns.org/admin/frontend:main
ports:
- "3000:3000"
environment:
@@ -78,9 +73,7 @@ services:
# API Documentation Service
api-docs:
build:
context: ./services/api-docs
dockerfile: Dockerfile
image: gittea.kammenstraatha.duckdns.org/admin/api-docs:cache
ports:
- "8083:8083"
environment:
@@ -97,6 +90,7 @@ services:
volumes:
postgres_data:
redis_data:
maven_cache:
networks:
labfusion-network: