Fichier docker-compose pour gérer le domaine d'upload des fichiers.
This commit is contained in:
+3
-1
@@ -3,4 +3,6 @@ host/apache/logs/*.log
|
|||||||
host/database/data/*
|
host/database/data/*
|
||||||
!host/database/data/.gitkeep
|
!host/database/data/.gitkeep
|
||||||
host/database/backups/*
|
host/database/backups/*
|
||||||
!host/database/backups/.gitkeep
|
!host/database/backups/.gitkeep
|
||||||
|
upload/*
|
||||||
|
!upload/.gitkeep
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user