services:
  runtipi-reverse-proxy:
    ports:
      - 8080:8080
    command: 
      - '--providers.docker'
      - '--providers.file.directory=/srv/runtipi/traefik/dynamic'
      - '--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}'
      - '--certificatesresolvers.myresolver.acme.storage=/shared/acme.json'
      - '--certificatesresolvers.myresolver.acme.dnshallenge.entrypoint=cloudflare'
    environment:
      CF_API_EMAIL: "${ACME_EMAIL}"
      CF_DNS_API_TOKEN: "${CF_DNS_API_TOKEN}"