Docker/Intelligence-Artificielle/Stirling-PDF/docker-compose-traefik.yml
2024-04-21 17:14:48 +02:00

36 lines
1.2 KiB
YAML

#### NETWORKS
networks:
docker-traefik_front_network:
external: true
back_network:
driver: bridge
attachable: true
#### SERVICES
services:
### stirling-pdf
stirling-pdf:
container_name: stirling-pdf-app
hostname: stirling-pdf-app
image: frooodle/s-pdf:latest
networks:
- docker-traefik_front_network
volumes:
- ./trainingData:/usr/share/tesseract-ocr/4.00/tessdata
- ./extraConfigs:/configs
environment:
- DOCKER_ENABLE_SECURITY=false
labels:
- "traefik.enable=true"
- "traefik.docker.network=docker-traefik_front_network"
## HTTP
- "traefik.http.routers.stirling-pdf-http.rule=Host(`stirling-pdf.10.0.4.29.traefik.me`)"
- "traefik.http.routers.stirling-pdf-http.entrypoints=http"
## HTTPS
- "traefik.http.routers.stirling-pdf-https.rule=Host(`stirling-pdf.10.0.4.29.traefik.me`)"
- "traefik.http.routers.stirling-pdf-https.entrypoints=https"
- "traefik.http.routers.stirling-pdf-https.tls=true"
- "traefik.http.routers.stirling-pdf.service=stirling-pdf-service"
## Middleware
## Service
- "traefik.http.services.stirling-pdf-service.loadbalancer.server.port=8080"