Browse Source

add archiving through VPN example to docker-compose

Nick Sweeting 5 years ago
parent
commit
83bfc580fa
1 changed files with 28 additions and 10 deletions
  1. 28 10
      docker-compose.yml

+ 28 - 10
docker-compose.yml

@@ -21,10 +21,37 @@ services:
         environment:
         environment:
             - USE_COLOR=True
             - USE_COLOR=True
             - SHOW_PROGRESS=False
             - SHOW_PROGRESS=False
-            # - HTTP_PROXY=http://pywb:8080  COMING SOON!
         volumes:
         volumes:
             - ./data:/data
             - ./data:/data
 
 
+
+    # Optional Addons
+
+    # Example: Put Nginx in front of the ArchiveBox server for SSL termination
+    # nginx:
+    #     image: nginx:alpine
+    #     ports:
+    #         - 443:443
+    #         - 80:80
+    #     volumes:
+    #         - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
+    #         - ./data:/var/www
+
+    # Example: run all your ArchiveBox traffic through a WireGuard VPN
+    # wireguard:
+    #   image: linuxserver/wireguard
+    #   network_mode: 'service:archivebox'
+    #   cap_add:
+    #     - NET_ADMIN
+    #     - SYS_MODULE
+    #   sysctls:
+    #     - net.ipv4.conf.all.rp_filter=2
+    #     - net.ipv4.conf.all.src_valid_mark=1
+    #   volumes:
+    #     - /lib/modules:/lib/modules
+    #     - ./wireguard.conf:/config/wg0.conf:ro
+    
+    # Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox
     # pywb:
     # pywb:
     #     image: webrecorder/pywb:latest
     #     image: webrecorder/pywb:latest
     #     entrypoint: /bin/sh 'wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback --proxy;'
     #     entrypoint: /bin/sh 'wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback --proxy;'
@@ -35,12 +62,3 @@ services:
     #     volumes:
     #     volumes:
     #         ./data:/archivebox
     #         ./data:/archivebox
     #         ./data/wayback:/webarchive
     #         ./data/wayback:/webarchive
-
-#    nginx:
-#        image: nginx:alpine
-#        ports:
-#            - 443:443
-#            - 80:80
-#        volumes:
-#            - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
-#            - ./data:/var/www