docker-compose.yml 820 B

123456789101112131415161718192021222324252627282930313233
  1. version: '2.2'
  2. volumes:
  3. mail_queue:
  4. services:
  5. tor_proxy:
  6. # 1.0.0-tor0.4.1.6-amd64
  7. image: fphammerle/tor-proxy@sha256:ad55d07b1b21c35fa044dc3e1ea6c7d8494f39eb89491ddad35c245340f7cd4b
  8. security_opt: ['no-new-privileges']
  9. restart: unless-stopped
  10. cpus: 0.5
  11. mem_limit: 128m
  12. monitor:
  13. build: .
  14. image: fphammerle/onion-service-status-mail
  15. environment:
  16. TOR_HOST: tor_proxy
  17. TOR_PORT: 9050
  18. ONION_SERVICE_HOST: change-me.onion
  19. ONION_SERVICE_PORT: 80
  20. # TIMEOUT_SECONDS: 8
  21. # SLEEP_DURATION: 1m
  22. RECIPIENT_ADDRESS: change.me@domain.tld
  23. # VERBOSE: 1
  24. volumes:
  25. - mail_queue:/var/spool/dma:rw
  26. security_opt: [no-new-privileges]
  27. restart: unless-stopped
  28. cpus: 0.2
  29. mem_limit: 64m
  30. # https://docs.docker.com/compose/compose-file/