@@ -21,27 +21,32 @@ services:
21
21
# - ./etc/crontabs:/var/spool/cron/crontabs # uncomment this and archivebox_scheduler below to set up automatic recurring archive jobs
22
22
# - ./archivebox:/app/archivebox # uncomment this to mount the ArchiveBox source code at runtime (for developers working on archivebox)
23
23
# build: . # uncomment this to build the image from source code at buildtime (for developers working on archivebox)
24
- # dns: # uncomment this and pihole container below for ad-blocking during archiving
25
- # - pihole
24
+
26
25
environment :
27
26
- ALLOWED_HOSTS=* # restrict this to only accept incoming traffic via specific domain name
28
- # - MEDIA_MAX_SIZE=750m # increase this filesize limit to allow archiving larger audio/video files
29
- # - TIMEOUT=60 # increase this number to 120+ seconds if you see many slow downloads timing out
30
- # - CHECK_SSL_VALIDITY=True # set to False to disable strict SSL checking (allows saving URLs w/ broken certs)
31
- # - SAVE_ARCHIVE_DOT_ORG=True # set to False to disable submitting all URLs to Archive.org when archiving
32
27
# - PUBLIC_INDEX=True # set to False to prevent anonymous users from viewing snapshot list
33
28
# - PUBLIC_SNAPSHOTS=True # set to False to prevent anonymous users from viewing snapshot content
34
29
# - PUBLIC_ADD_VIEW=False # set to True to allow anonymous users to submit new URLs to archive
35
- # - PUID=1000 # set to your host user's UID & GID if you encounter permissions issues
36
- # - PGID=1000
37
30
# - ADMIN_USERNAME=admin # create an admin user on first run with the given user/pass combo
38
31
# - ADMIN_PASSWORD=SomeSecretPassword
32
+ # - PUID=911 # set to your host user's UID & GID if you encounter permissions issues
33
+ # - PGID=911
39
34
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these and sonic container below for better full-text search
40
35
# - SEARCH_BACKEND_HOST_NAME=sonic
41
36
# - SEARCH_BACKEND_PASSWORD=SomeSecretPassword
37
+ # - MEDIA_MAX_SIZE=750m # increase this filesize limit to allow archiving larger audio/video files
38
+ # - TIMEOUT=60 # increase this number to 120+ seconds if you see many slow downloads timing out
39
+ # - CHECK_SSL_VALIDITY=True # set to False to disable strict SSL checking (allows saving URLs w/ broken certs)
40
+ # - SAVE_ARCHIVE_DOT_ORG=True # set to False to disable submitting all URLs to Archive.org when archiving
42
41
# ...
43
42
# add further configuration options from archivebox/config.py as needed (to apply them only to this container)
44
43
# or set using `docker compose run archivebox config --set SOME_KEY=someval` (to persist config across all containers)
44
+
45
+ # For ad-blocking during archiving, uncomment this section and pihole service section below
46
+ # networks:
47
+ # - dns
48
+ # dns:
49
+ # - 172.20.0.53
45
50
46
51
47
52
# ####### Optional Addons: tweak examples below as needed for your specific use case ########
@@ -68,9 +73,16 @@ services:
68
73
# pihole:
69
74
# image: pihole/pihole:latest
70
75
# ports:
71
- # - 8090:80 # uncomment to access the admin HTTP interface on http://localhost:8090
76
+ # - 127.0.0.1: 8090:80 # uncomment to access the admin HTTP interface on http://localhost:8090
72
77
# environment:
73
78
# - WEBPASSWORD=SET_THIS_TO_SOME_SECRET_PASSWORD_FOR_ADMIN_DASHBOARD
79
+ # - DNSMASQ_LISTENING=all
80
+ # dns:
81
+ # - 127.0.0.1
82
+ # - 1.1.1.1
83
+ # networks:
84
+ # dns:
85
+ # ipv4_address: 172.20.0.53
74
86
# volumes:
75
87
# - ./etc/pihole:/etc/pihole
76
88
# - ./etc/dnsmasq:/etc/dnsmasq.d
@@ -140,3 +152,13 @@ services:
140
152
# volumes:
141
153
# - ./data:/archivebox
142
154
# - ./data/wayback:/webarchive
155
+
156
+
157
+ networks :
158
+
159
+ # network needed for pihole container to offer :53 dns resolving on fixed ip for archivebox container
160
+ dns :
161
+ ipam :
162
+ driver : default
163
+ config :
164
+ - subnet : 172.20.0.0/24
0 commit comments