upgrade(docker)
This commit is contained in:
+4
-49
@@ -136,55 +136,10 @@ services:
|
||||
start_period: 15s
|
||||
restart: unless-stopped
|
||||
|
||||
# API Gateway
|
||||
api-gateway:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: infrastructure/gateway/Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
consul:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- SPRING_PROFILES_ACTIVE=docker
|
||||
- SPRING_CLOUD_CONSUL_HOST=consul
|
||||
- SPRING_CLOUD_CONSUL_PORT=8500
|
||||
networks:
|
||||
- meldestelle-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
restart: unless-stopped
|
||||
|
||||
# Ping Service for testing
|
||||
ping-service:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: temp/ping-service/Dockerfile
|
||||
ports:
|
||||
- "8082:8082"
|
||||
depends_on:
|
||||
consul:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- SPRING_PROFILES_ACTIVE=docker
|
||||
- SPRING_CLOUD_CONSUL_HOST=consul
|
||||
- SPRING_CLOUD_CONSUL_PORT=8500
|
||||
- SPRING_APPLICATION_NAME=ping-service
|
||||
- SERVER_PORT=8082
|
||||
networks:
|
||||
- meldestelle-network
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8082/ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
restart: unless-stopped
|
||||
# ===================================================================
|
||||
# Application Services moved to docker-compose.services.yml
|
||||
# Usage: docker-compose -f docker-compose.yml -f docker-compose.services.yml up
|
||||
# ===================================================================
|
||||
|
||||
# Optional monitoring services
|
||||
prometheus:
|
||||
|
||||
Reference in New Issue
Block a user