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