|
| 1 | +version: "3.9" |
| 2 | + |
| 3 | +services: |
| 4 | + archivebox: |
| 5 | + image: archivebox/archivebox:dev |
| 6 | + container_name: archivebox |
| 7 | + command: server --quick-init 0.0.0.0:8000 |
| 8 | + restart: unless-stopped |
| 9 | + ports: |
| 10 | + - 8000:8000 |
| 11 | + expose: |
| 12 | + - 8000 |
| 13 | + volumes: |
| 14 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/archivebox/data:/data # archivebox application data |
| 15 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/archivebox/crontabs:/var/spool/cron/crontabs # archivebox crontab data for scheduled runs |
| 16 | + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/archivebox/source-code:/app/archivebox # bind mounts the archivebox source code for development |
| 17 | + environment: |
| 18 | + # see https://docs.archivebox.io/en/master/Configuration.html for more details |
| 19 | + - ADMIN_USERNAME=archivebox # your initial username |
| 20 | + - ADMIN_PASSWORD=archivebox # your initial password |
| 21 | + - ALLOWED_HOSTS=* |
| 22 | + - PUBLIC_INDEX=False |
| 23 | + - PUBLIC_SNAPSHOTS=False |
| 24 | + - PUBLIC_ADD_VIEW=False |
| 25 | + - PUID=1000 |
| 26 | + - PGID=1000 |
| 27 | + - SEARCH_BACKEND_ENGINE=sonic |
| 28 | + - SEARCH_BACKEND_HOST_NAME=sonic |
| 29 | + - SEARCH_BACKEND_PASSWORD=deport-silver-showcase-pusher-radiantly |
| 30 | + - MEDIA_MAX_SIZE=750m |
| 31 | + - TIMEOUT=60 |
| 32 | + - CHECK_SSL_VALIDITY=False |
| 33 | + - SAVE_ARCHIVE_DOT_ORG=False |
| 34 | + #networks: |
| 35 | + # - proxy |
| 36 | + # - archivebox_default |
| 37 | + #labels: |
| 38 | + # - traefik.enable=true |
| 39 | + # - traefik.docker.network=proxy |
| 40 | + # - traefik.http.routers.archivebox.rule=Host(`archive.exmple.com`) |
| 41 | + # - traefik.http.services.archivebox.loadbalancer.server.port=8000 |
| 42 | + # # Part for optional traefik middlewares |
| 43 | + # - traefik.http.routers.archivebox.middlewares=local-ipwhitelist@file |
| 44 | + |
| 45 | + |
| 46 | +### Example: To run the Sonic full-text search backend, first download the config file to sonic.cfg |
| 47 | +# $ curl -O https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic.cfg |
| 48 | +# After starting, backfill any existing Snapshots into the full-text index: |
| 49 | +# $ docker-compose run archivebox update --index-only |
| 50 | + |
| 51 | + sonic: |
| 52 | + image: valeriansaliou/sonic:latest |
| 53 | + container_name: archivebox-sonic |
| 54 | + expose: |
| 55 | + - 1491 |
| 56 | + environment: |
| 57 | + - SEARCH_BACKEND_PASSWORD=deport-silver-showcase-pusher-radiantly |
| 58 | + volumes: |
| 59 | + # Example: To run the Sonic full-text search backend, first download the config file to sonic.cfg |
| 60 | + # curl https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic.cfg -o /mnt/docker-volumes/archivebox/sonic/sonic.cfg |
| 61 | + # After starting, backfill any existing Snapshots into the full-text index: |
| 62 | + # $ docker-compose run archivebox update --index-only |
| 63 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/archivebox/sonic/sonic.cfg:/etc/sonic.cfg:ro |
| 64 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/archivebox/sonic/store:/var/lib/sonic/store |
| 65 | + #networks: |
| 66 | + # - archivebox_default |
| 67 | + |
| 68 | +#networks: |
| 69 | +# proxy: |
| 70 | +# external: true |
| 71 | +# archivebox_default: |
| 72 | +# external: false |
0 commit comments