docker-compose.yml 947 B

123456789101112131415161718192021222324252627282930313233343536
  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. MAIL_TO: change.me@domain.tld, another@recipient.com
  25. #VERBOSE: 1
  26. volumes:
  27. - mail_queue:/var/spool/dma:rw
  28. cap_drop: [ALL]
  29. security_opt: [no-new-privileges]
  30. cpus: 0.2
  31. mem_limit: 64m
  32. restart: unless-stopped
  33. # https://docs.docker.com/compose/compose-file/