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.
98 lines
2.3 KiB
YAML
98 lines
2.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Database
|
|
postgres:
|
|
image: postgres:14
|
|
environment:
|
|
POSTGRES_DB: labfusion
|
|
POSTGRES_USER: labfusion
|
|
POSTGRES_PASSWORD: labfusion_password
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- labfusion-network
|
|
|
|
# Redis for message bus
|
|
redis:
|
|
image: redis:latest
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- labfusion-network
|
|
|
|
# Java Spring Boot API Gateway
|
|
api-gateway:
|
|
image: gittea.kammenstraatha.duckdns.org/admin/api-gateway:main
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/labfusion
|
|
- SPRING_DATASOURCE_USERNAME=labfusion
|
|
- SPRING_DATASOURCE_PASSWORD=labfusion_password
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- SPRING_PROFILES_ACTIVE=prod
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
networks:
|
|
- labfusion-network
|
|
|
|
# Python FastAPI Service Adapters
|
|
service-adapters:
|
|
image: gittea.kammenstraatha.duckdns.org/admin/service-adapters:main
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- POSTGRES_URL=postgresql://labfusion:labfusion_password@postgres:5432/labfusion
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
networks:
|
|
- labfusion-network
|
|
|
|
# React Frontend
|
|
frontend:
|
|
image: gittea.kammenstraatha.duckdns.org/admin/frontend:main
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- REACT_APP_API_URL=http://localhost:8080
|
|
- REACT_APP_WEBSOCKET_URL=ws://localhost:8080/ws
|
|
depends_on:
|
|
- api-gateway
|
|
networks:
|
|
- labfusion-network
|
|
|
|
# API Documentation Service
|
|
api-docs:
|
|
image: gittea.kammenstraatha.duckdns.org/admin/api-docs:cache
|
|
ports:
|
|
- "8083:8083"
|
|
environment:
|
|
- API_GATEWAY_URL=http://api-gateway:8080
|
|
- SERVICE_ADAPTERS_URL=http://service-adapters:8000
|
|
- METRICS_COLLECTOR_URL=http://metrics-collector:8081
|
|
- NOTIFICATION_SERVICE_URL=http://notification-service:8082
|
|
depends_on:
|
|
- api-gateway
|
|
- service-adapters
|
|
networks:
|
|
- labfusion-network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
maven_cache:
|
|
|
|
networks:
|
|
labfusion-network:
|
|
driver: bridge
|