Modification Airflow

This commit is contained in:
2024-04-02 21:14:17 +02:00
parent 6c0f79f5da
commit 227f214afd
2 changed files with 343 additions and 17 deletions

View File

@ -116,10 +116,10 @@ services:
airflow-webserver:
<<: *airflow-common
command: webserver
# ports:
# - "8080:8080"
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "--fail", "http://airflow.fr.dgs.group/health"]
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
@ -132,20 +132,6 @@ services:
networks:
- docker-traefik_front_network
- back_network
labels:
- "traefik.enable=true"
- "traefik.docker.network=docker-traefik_front_network"
# HTTP
- "traefik.http.routers.airflow-http.rule=Host(`airflow.fr.dgs.group`)"
- "traefik.http.routers.airflow-http.entrypoints=http"
# HTTPS
- "traefik.http.routers.airflow-https.rule=Host(`airflow.fr.dgs.group`)"
- "traefik.http.routers.airflow-https.entrypoints=https"
- "traefik.http.routers.airflow-https.service=airflow-service"
- "traefik.http.routers.airflow-https.tls=true"
# Middleware
# Service
- "traefik.http.services.airflow-service.loadbalancer.server.port=8080"
### airflow-scheduler
airflow-scheduler: