Migrate to Traefik 2.0

This commit is contained in:
2020-09-19 15:09:50 +01:00
parent d586e01051
commit e51a8d048f
3 changed files with 27 additions and 25 deletions

View File

@@ -17,10 +17,13 @@ COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/web.conf /etc/nginx/conf.d/web.conf
LABEL com.centurylinklabs.watchtower.enable="true"
LABEL traefik.docker.network=web
LABEL traefik.enable=true
LABEL traefik.http.routers.fluttershub-com.tls=true
LABEL traefik.http.routers.fluttershub-com.rule=Host(`fluttershub.com`)
LABEL traefik.http.routers.fluttershub-com.tls.certresolver=letsencrypt
LABEL traefik.http.services.fluttershub-com.loadbalancer.server.port=80
LABEL traefik.port=80
EXPOSE 80
RUN rm -Rf /usr/share/nginx/html/ && rm /etc/nginx/conf.d/default.conf
COPY --from=builder /usr/src/app/build /usr/share/nginx/html/