docker-compose.yml 631 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2
version: '3.7'
services:
Carlo Landmeter's avatar
Carlo Landmeter committed
3 4
  update:
    image: alpinelinux/mirror-status
Carlo Landmeter's avatar
Carlo Landmeter committed
5
    init: true
6
    restart: always
Carlo Landmeter's avatar
Carlo Landmeter committed
7 8 9 10 11 12
    volumes:
      - "./ssh:/root/.ssh"
      - "./config.lua:/usr/share/alpine-mirror-status/config.lua"
      - "htdocs:/var/www/localhost/htdocs"
  httpd:
    image: alpinelinux/darkhttpd
13
    restart: always
Carlo Landmeter's avatar
Carlo Landmeter committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    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
    networks:
      web:
volumes:
  htdocs:
networks:
  web:
    external: true