Commit 660f5c39 authored by Carlo Landmeter's avatar Carlo Landmeter

compose: update to traefik v2 and new dockerfile

parent bbe997ee
......@@ -2,24 +2,31 @@ version: '3.7'
services:
update:
image: alpinelinux/mirror-status
build: .
init: true
restart: always
volumes:
- "./ssh:/root/.ssh"
- "./config.lua:/usr/share/alpine-mirror-status/config.lua"
- "htdocs:/var/www/localhost/htdocs"
environment:
- MQTT_TOPICS=git/infra/mirrors/master
httpd:
image: alpinelinux/darkhttpd
restart: always
user: 1000:1000
ports:
- 8080:8080
volumes:
- "htdocs:/var/www/localhost/htdocs"
labels:
traefik.enable: "true"
traefik.frontend.rule: 'Host: mirrors.alpinelinux.org'
traefik.port: 8080
traefik.http.routers.mirrors.rule: Host(`mirrors.alpinelinux.org`)
traefik.http.routers.mirrors.entrypoints: http
traefik.http.routers.mirrors.middlewares: redirect
traefik.http.routers.mirrors-tls.rule: Host(`mirrors.alpinelinux.org`)
traefik.http.routers.mirrors-tls.entrypoints: https
traefik.http.routers.mirrors-tls.tls: true
traefik.http.middlewares.redirect.redirectscheme.scheme: https
traefik.http.services.mirrors.loadbalancer.server.port: 8080
networks:
web:
volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment