docker-compose.yml 966 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: '2.2'
  2. volumes:
  3. mail_queue:
  4. services:
  5. tor_proxy:
  6. # object 76f7fcaf094d28a2e8ffaf0a94c83f084c4fc03e
  7. # tag docker/4.1.0-tor0.4.4.8r0-amd64
  8. image: docker.io/fphammerle/tor-proxy@sha256:161a3d494032adb588b8e38bc11a568806ca1499e6085b08daaeb93245e51bc9
  9. cap_drop: [ALL]
  10. security_opt: [no-new-privileges]
  11. cpus: 0.5
  12. mem_limit: 128m
  13. restart: unless-stopped
  14. monitor:
  15. build: .
  16. image: fphammerle/onion-service-status-mail
  17. environment:
  18. TOR_HOST: tor_proxy
  19. TOR_PORT: 9050
  20. ONION_SERVICE_HOST: change-me.onion
  21. ONION_SERVICE_PORT: 80
  22. # TIMEOUT_SECONDS: 8
  23. # SLEEP_DURATION: 1m
  24. # RETRIES: 4
  25. MAIL_TO: change.me@domain.tld, another@recipient.com
  26. #VERBOSE: 1
  27. volumes:
  28. - mail_queue:/var/spool/dma:rw
  29. cap_drop: [ALL]
  30. security_opt: [no-new-privileges]
  31. cpus: 0.2
  32. mem_limit: 64m
  33. restart: unless-stopped
  34. # https://docs.docker.com/compose/compose-file/