diff --git a/server.docker-compose.yaml b/server.docker-compose.yaml index db93c65..e9479b8 100644 --- a/server.docker-compose.yaml +++ b/server.docker-compose.yaml @@ -28,6 +28,9 @@ services: - "--entrypoints.web.http.redirections.entrypoint.permanent=true" - "--entryPoints.websecure=true" - "--entryPoints.websecure.address=:443" + - "--certificatesresolvers.le.acme.email=contact@imranr.dev" + - "--certificatesresolvers.le.acme.storage=./acme/acme.json" + - "--certificatesresolvers.le.acme.tlschallenge=true" - "--entryPoints.websecure.proxyProtocol.trustedIPs=172.19.0.1/32" ports: - "80:80" @@ -41,6 +44,7 @@ services: - "traefik.http.routers.api.entryPoints=websecure" - "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.tls=true" + - "traefik.http.routers.api.tls.certresolver=le" restart: unless-stopped networks: - traefik @@ -63,6 +67,7 @@ services: - "traefik.http.routers.filebrowser.entrypoints=websecure" - "traefik.http.routers.filebrowser.tls=true" - "traefik.http.services.filebrowser.loadbalancer.server.port=80" + - "traefik.http.routers.filebrowser.tls.certresolver=le" volumes: filebrowser_db: