diff --git a/docker-compose.yml b/docker-compose.yml index 1d41e5c..dbf5f48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,30 +1,19 @@ services: - sophena: + auctiora: build: - dockerfile: . - container_name: sophena - ports: - - "8081:8081" - volumes: - # Mount database and images directory - - ./data/cache.db:/mnt/okcomputer/output/cache.db - - ./data/images:/mnt/okcomputer/output/images - # Mount YOLO models (optional) - - ./models:/app/models:ro + context: /opt/apps/auctiora + dockerfile: Dockerfile + container_name: auctiora + restart: unless-stopped + networks: + - traefik_net environment: # Database configuration - AUCTION_DATABASE_PATH=/mnt/okcomputer/output/cache.db - AUCTION_IMAGES_PATH=/mnt/okcomputer/output/images # Notification configuration - # Use 'desktop' for desktop notifications or SMTP config for email - AUCTION_NOTIFICATION_CONFIG=desktop - # For email: smtp:your@gmail.com:app_password:recipient@example.com - - # YOLO model paths (optional - works without object detection) - - AUCTION_YOLO_CONFIG=/app/models/yolov4.cfg - - AUCTION_YOLO_WEIGHTS=/app/models/yolov4.weights - - AUCTION_YOLO_CLASSES=/app/models/coco.names # Quarkus configuration - QUARKUS_HTTP_PORT=8081 @@ -36,15 +25,18 @@ services: - AUCTION_WORKFLOW_IMAGE_PROCESSING_CRON=0 0 * * * ? - AUCTION_WORKFLOW_BID_MONITORING_CRON=0 */15 * * * ? - AUCTION_WORKFLOW_CLOSING_ALERTS_CRON=0 */5 * * * ? - - JAVA_TOOL_OPTIONS=-Dio.netty.tryReflectionSetAccessible=true --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow + + volumes: + # Mount database and images directory + - auctiora-data:/mnt/okcomputer/output labels: - "traefik.enable=true" - - "traefik.http.routers.sophena.rule=Host(`auctiora.appmodel.nl`)" - - "traefik.http.routers.sophena.entrypoints=websecure" - - "traefik.http.routers.sophena.tls=true" - - "traefik.http.routers.sophena.tls.certresolver=letsencrypt" - - "traefik.http.services.sophena.loadbalancer.server.port=8081" + - "traefik.http.routers.auctiora.rule=Host(`auctiora.appmodel.nl`)" + - "traefik.http.routers.auctiora.entrypoints=websecure" + - "traefik.http.routers.auctiora.tls=true" + - "traefik.http.routers.auctiora.tls.certresolver=letsencrypt" + - "traefik.http.services.auctiora.loadbalancer.server.port=8081" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health/live"] @@ -53,16 +45,11 @@ services: retries: 3 start_period: 10s - restart: unless-stopped - - networks: - - auction-network - - networks: - auction-network: - driver: bridge + traefik_net: + external: true + name: traefik_net volumes: - auction-data: - driver: local + auctiora-data: + driver: local \ No newline at end of file