docker-compose.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Usage:
  2. # docker-compose up -d
  3. # docker-compose run archivebox init
  4. # echo "https://example.com" | docker-compose run archivebox archivebox add
  5. # docker-compose run archivebox add --depth=1 https://example.com/some/feed.rss
  6. # docker-compose run archivebox config --set PUBLIC_INDEX=True
  7. # Documentation:
  8. # https://github.com/pirate/ArchiveBox/wiki/Docker#docker-compose
  9. version: '3.7'
  10. services:
  11. archivebox:
  12. # build: .
  13. image: nikisweeting/archivebox:latest
  14. command: server 0.0.0.0:8000
  15. stdin_open: true
  16. tty: true
  17. ports:
  18. - 8000:8000
  19. environment:
  20. - USE_COLOR=True
  21. - SHOW_PROGRESS=False
  22. volumes:
  23. - ./data:/data
  24. # Optional Addons: tweak these examples as needed for your specific use case
  25. # Example: Run scheduled imports in a docker instead of using cron on the
  26. # host machine, add tasks and see more info with archivebox schedule --help
  27. # scheduler:
  28. # image: nikisweeting/archivebox:latest
  29. # command: schedule --foreground
  30. # environment:
  31. # - USE_COLOR=True
  32. # - SHOW_PROGRESS=False
  33. # volumes:
  34. # - ./data:/data
  35. # Example: Put Nginx in front of the ArchiveBox server for SSL termination
  36. # nginx:
  37. # image: nginx:alpine
  38. # ports:
  39. # - 443:443
  40. # - 80:80
  41. # volumes:
  42. # - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
  43. # - ./data:/var/www
  44. # Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel
  45. # wireguard:
  46. # image: linuxserver/wireguard
  47. # network_mode: 'service:archivebox'
  48. # cap_add:
  49. # - NET_ADMIN
  50. # - SYS_MODULE
  51. # sysctls:
  52. # - net.ipv4.conf.all.rp_filter=2
  53. # - net.ipv4.conf.all.src_valid_mark=1
  54. # volumes:
  55. # - /lib/modules:/lib/modules
  56. # - ./wireguard.conf:/config/wg0.conf:ro
  57. # Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox
  58. # pywb:
  59. # image: webrecorder/pywb:latest
  60. # entrypoint: /bin/sh 'wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback --proxy;'
  61. # environment:
  62. # - INIT_COLLECTION=archivebox
  63. # ports:
  64. # - 8080:8080
  65. # volumes:
  66. # ./data:/archivebox
  67. # ./data/wayback:/webarchive