Fichier docker-compose pour gérer le domaine d'upload des fichiers.

This commit is contained in:
2026-03-01 10:37:20 +01:00
parent 8e10fdf3e2
commit d19d3eed63
3 changed files with 20 additions and 1 deletions
+2
View File
@@ -4,3 +4,5 @@ host/database/data/*
!host/database/data/.gitkeep
host/database/backups/*
!host/database/backups/.gitkeep
upload/*
!upload/.gitkeep
+17
View File
@@ -0,0 +1,17 @@
services:
uploads:
image: nginx:alpine
container_name: ${CONTAINER_PREFIX}_uploads
restart: unless-stopped
volumes:
- ./upload:/usr/share/nginx/html:ro
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.${CONTAINER_PREFIX}_uploads.rule=Host(`upload.${PROJECT_URL}`)
- traefik.http.routers.${CONTAINER_PREFIX}_uploads.entrypoints=websecure
- traefik.http.routers.${CONTAINER_PREFIX}_uploads.tls=true
- traefik.http.services.${CONTAINER_PREFIX}_uploads.loadbalancer.server.port=80
networks:
- frontend
View File