This commit is contained in:
Tour
2025-12-05 08:27:43 +01:00
parent 20c2129d06
commit 0ab9430f35

View File

@@ -1,30 +1,19 @@
services: services:
sophena: auctiora:
build: build:
dockerfile: . context: /opt/apps/auctiora
container_name: sophena dockerfile: Dockerfile
ports: container_name: auctiora
- "8081:8081" restart: unless-stopped
volumes: networks:
# Mount database and images directory - traefik_net
- ./data/cache.db:/mnt/okcomputer/output/cache.db
- ./data/images:/mnt/okcomputer/output/images
# Mount YOLO models (optional)
- ./models:/app/models:ro
environment: environment:
# Database configuration # Database configuration
- AUCTION_DATABASE_PATH=/mnt/okcomputer/output/cache.db - AUCTION_DATABASE_PATH=/mnt/okcomputer/output/cache.db
- AUCTION_IMAGES_PATH=/mnt/okcomputer/output/images - AUCTION_IMAGES_PATH=/mnt/okcomputer/output/images
# Notification configuration # Notification configuration
# Use 'desktop' for desktop notifications or SMTP config for email
- AUCTION_NOTIFICATION_CONFIG=desktop - 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 configuration
- QUARKUS_HTTP_PORT=8081 - QUARKUS_HTTP_PORT=8081
@@ -36,15 +25,18 @@ services:
- AUCTION_WORKFLOW_IMAGE_PROCESSING_CRON=0 0 * * * ? - AUCTION_WORKFLOW_IMAGE_PROCESSING_CRON=0 0 * * * ?
- AUCTION_WORKFLOW_BID_MONITORING_CRON=0 */15 * * * ? - AUCTION_WORKFLOW_BID_MONITORING_CRON=0 */15 * * * ?
- AUCTION_WORKFLOW_CLOSING_ALERTS_CRON=0 */5 * * * ? - 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: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.sophena.rule=Host(`auctiora.appmodel.nl`)" - "traefik.http.routers.auctiora.rule=Host(`auctiora.appmodel.nl`)"
- "traefik.http.routers.sophena.entrypoints=websecure" - "traefik.http.routers.auctiora.entrypoints=websecure"
- "traefik.http.routers.sophena.tls=true" - "traefik.http.routers.auctiora.tls=true"
- "traefik.http.routers.sophena.tls.certresolver=letsencrypt" - "traefik.http.routers.auctiora.tls.certresolver=letsencrypt"
- "traefik.http.services.sophena.loadbalancer.server.port=8081" - "traefik.http.services.auctiora.loadbalancer.server.port=8081"
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health/live"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health/live"]
@@ -53,16 +45,11 @@ services:
retries: 3 retries: 3
start_period: 10s start_period: 10s
restart: unless-stopped
networks:
- auction-network
networks: networks:
auction-network: traefik_net:
driver: bridge external: true
name: traefik_net
volumes: volumes:
auction-data: auctiora-data:
driver: local driver: local