Code / Konfiguration

compose.yaml

Pfad: compose.yaml

name: seb4u-java-master

services:
  commerceflow-spring:
    profiles: [app]
    build:
      context: .
      dockerfile: Dockerfile.spring
      args:
        JAVA_VERSION: ${JAVA_VERSION:-25}
    image: seb4u/commerceflow-spring:local
    environment:
      SPRING_PROFILES_ACTIVE: docker
      SERVER_PORT: 8080
      COMMERCEFLOW_OUTBOX_DIR: /app/data/outbox
    ports:
      - '${APP_PORT:-8080}:8080'
    volumes:
      - commerceflow-outbox:/app/data/outbox
    healthcheck:
      test: ['CMD', 'wget', '-qO-', 'http://localhost:8080/actuator/health']
      interval: 20s
      timeout: 3s
      retries: 5
      start_period: 30s

  file-worker:
    profiles: [worker]
    build:
      context: .
      dockerfile: Dockerfile.file-worker
      args:
        JAVA_VERSION: ${JAVA_VERSION:-25}
    image: seb4u/commerceflow-file-worker:local
    volumes:
      - commerceflow-outbox:/app/data/outbox

  docs:
    profiles: [docs]
    image: nginx:alpine
    ports:
      - '${DOCS_PORT:-8088}:80'
    volumes:
      - ./docs/workbook:/usr/share/nginx/html:ro

volumes:
  commerceflow-outbox: