Update docker-compose.yml to use the latest image version and streamline CORS middleware configuration

This commit is contained in:
2025-12-18 05:40:11 -05:00
parent f9414c09bc
commit 799089caa4

View File

@@ -1,6 +1,6 @@
services: services:
techniker-me: techniker-me:
image: docker.techniker.me/techniker-me:2025.0.4 image: docker.techniker.me/techniker-me:latest
container_name: techniker-me container_name: techniker-me
restart: unless-stopped restart: unless-stopped
networks: networks:
@@ -13,14 +13,10 @@ services:
- traefik.http.routers.techniker-me.tls=true - traefik.http.routers.techniker-me.tls=true
- traefik.http.routers.techniker-me.tls.certresolver=cloudflare - traefik.http.routers.techniker-me.tls.certresolver=cloudflare
- traefik.http.services.techniker-me.loadbalancer.server.port=80 - traefik.http.services.techniker-me.loadbalancer.server.port=80
# --- ADD THESE LINES FOR CORS --- - traefik.http.middlewares.hls-cors.headers.accesscontrolalloworiginlist=*
# 1. Define the middleware - traefik.http.middlewares.hls-cors.headers.accesscontrolallowmethods=GET,OPTIONS
- "traefik.http.middlewares.hls-cors.headers.accesscontrolalloworiginlist=*" - traefik.http.middlewares.hls-cors.headers.accesscontrolallowheaders=Content-Type
- "traefik.http.middlewares.hls-cors.headers.accesscontrolallowmethods=GET,OPTIONS" - traefik.http.routers.techniker-me.middlewares=hls-cors
- "traefik.http.middlewares.hls-cors.headers.accesscontrolallowheaders=Content-Type"
# 2. Attach middleware to the router
- "traefik.http.routers.techniker-me.middlewares=hls-cors"
networks: networks: