docker-compose.yml 990 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
version: '3.7'
services:
  update:
    image: alpinelinux/secdb
    build: .
    restart: always
    environment:
      - MQTT_TOPICS=git/aports/#
    volumes:
      - aports:/root/aports
      - htdocs:/var/www/html
  nginx:
    image: nginx:1-alpine
    restart: always
    volumes:
      - htdocs:/var/www/html
      - ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
    labels:
      traefik.enable: "true"
      traefik.http.routers.secdb.rule: Host(`secdb.alpinelinux.org`)
      traefik.http.routers.secdb.entrypoints: http
      traefik.http.routers.secdb.middlewares: redirect
      traefik.http.routers.secdb-tls.rule: Host(`secdb.alpinelinux.org`)
      traefik.http.routers.secdb-tls.entrypoints: https
      traefik.http.routers.secdb-tls.tls: true
      traefik.http.middlewares.redirect.redirectscheme.scheme: https
      traefik.http.services.secdb.loadbalancer.server.port: 80
    networks:
      web:
volumes:
  aports:
  htdocs:
networks:
  web:
    external: true