Files
auctiora/docker-compose.yml
2025-12-05 08:59:23 +01:00

55 lines
1.6 KiB
YAML

services:
auctiora:
build:
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
- AUCTION_NOTIFICATION_CONFIG=desktop
# Quarkus configuration
- QUARKUS_HTTP_PORT=8081
- QUARKUS_HTTP_HOST=0.0.0.0
- QUARKUS_LOG_CONSOLE_LEVEL=INFO
# Scheduler configuration (cron expressions)
- AUCTION_WORKFLOW_SCRAPER_IMPORT_CRON=0 */30 * * * ?
- AUCTION_WORKFLOW_IMAGE_PROCESSING_CRON=0 0 * * * ?
- AUCTION_WORKFLOW_BID_MONITORING_CRON=0 */15 * * * ?
- AUCTION_WORKFLOW_CLOSING_ALERTS_CRON=0 */5 * * * ?
volumes:
# Mount database and images directory
- auctiora-data:/mnt/okcomputer/output
labels:
- "traefik.enable=true"
- "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/q/health/live"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
networks:
traefik_net:
external: true
name: traefik_net
volumes:
auctiora-data:
driver: local