You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

version: "3"
services:
static:
image: nginx:alpine
restart: always
expose:
- 3000
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- /home/adyanth/docker/data/static-server/:/usr/share/nginx/html
- /media/Backups/Certs/:/usr/share/nginx/html/certs
- /home/adyanth/docker/apps/homer/assets/appicons/:/usr/share/nginx/html/hotlink-ok/icons
networks:
- management-services
labels:
- traefik.enable=true
- traefik.docker.network=management-services
- traefik.http.routers.static.entrypoints=websecure
- traefik.http.routers.static.rule=HostRegexp(`static.adyanth.{root:\w+}`)
- traefik.http.routers.static.tls
- traefik.http.routers.static.middlewares=append-cf-xff@file,static-cors
- traefik.http.middlewares.static-cors.headers.customresponseheaders.Access-Control-Allow-Methods=GET,OPTIONS,HEAD
- traefik.http.middlewares.static-cors.headers.customresponseheaders.Access-Control-Allow-Origin=*
- traefik.http.middlewares.static-cors.headers.customresponseheaders.Access-Control-Max-Age=100
- traefik.http.middlewares.static-cors.headers.addvaryheader=true
networks:
management-services:
external: true