services:
  xhivart-mirror:
    build: .
    container_name: xhivart-mirror
    restart: always
    environment:
      - SMTP_HOST=${SMTP_HOST}
      - SMTP_PORT=${SMTP_PORT}
      - SMTP_USER=${SMTP_USER}
      - SMTP_PASS=${SMTP_PASS}
      - SMTP_FROM=${SMTP_FROM}
    networks:
      - traefik-public
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.xhivart-mirror.rule=Host(`xhiva.art`) || Host(`www.xhiva.art`) || Host(`xhivart.jeffemmett.com`)"
      - "traefik.http.routers.xhivart-mirror.entrypoints=web"
      - "traefik.http.services.xhivart-mirror.loadbalancer.server.port=3000"
      - "traefik.docker.network=traefik-public"

networks:
  traefik-public:
    external: true
