From d19d3eed633f92ccd762db4ab0f73297a50efbec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A8ve=20Caillault?= Date: Sun, 1 Mar 2026 10:37:20 +0100 Subject: [PATCH] =?UTF-8?q?Fichier=20docker-compose=20pour=20g=C3=A9rer=20?= =?UTF-8?q?le=20domaine=20d'upload=20des=20fichiers.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- docker-compose.upload.yml | 17 +++++++++++++++++ upload/.gitkeep | 0 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 docker-compose.upload.yml create mode 100644 upload/.gitkeep diff --git a/.gitignore b/.gitignore index 5f05490..d3351c3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ host/apache/logs/*.log host/database/data/* !host/database/data/.gitkeep host/database/backups/* -!host/database/backups/.gitkeep \ No newline at end of file +!host/database/backups/.gitkeep +upload/* +!upload/.gitkeep \ No newline at end of file diff --git a/docker-compose.upload.yml b/docker-compose.upload.yml new file mode 100644 index 0000000..270288c --- /dev/null +++ b/docker-compose.upload.yml @@ -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 diff --git a/upload/.gitkeep b/upload/.gitkeep new file mode 100644 index 0000000..e69de29