Skip to content

Commit 1fc6dd7

Browse files
committed
update dockerfiles for 0.7.1
1 parent 7033a1b commit 1fc6dd7

File tree

3 files changed

+59
-9
lines changed

3 files changed

+59
-9
lines changed

.dockerignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.DS_Store
2+
._*
3+
*.pyc
4+
__pycache__/
5+
.mypy_cache/
6+
.pytest_cache/
7+
.github/
8+
.git/
9+
.pdm-build/
10+
.pdm-python/
11+
.eggs/
12+
13+
venv/
14+
.venv/
15+
.docker-venv/
16+
node_modules/
17+
18+
build/
19+
dist/
20+
brew_dist/
21+
deb_dist/
22+
pip_dist/
23+
assets/
24+
25+
data/
26+
output/

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-$TARGETARCH$T
198198
&& ln -s "$CHROME_BINARY" /usr/bin/chromium-browser \
199199
&& mkdir -p "/home/${ARCHIVEBOX_USER}/.config/chromium/Crash Reports/pending/" \
200200
&& chown -R $ARCHIVEBOX_USER "/home/${ARCHIVEBOX_USER}/.config" \
201+
&& mkdir -p "$PLAYWRIGHT_BROWSERS_PATH" \
202+
&& chown -R $ARCHIVEBOX_USER "$PLAYWRIGHT_BROWSERS_PATH" \
201203
# Save version info
202204
&& ( \
203205
which chromium-browser && /usr/bin/chromium-browser --version \

docker-compose.yml

+31-9
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,32 @@ services:
2121
# - ./etc/crontabs:/var/spool/cron/crontabs # uncomment this and archivebox_scheduler below to set up automatic recurring archive jobs
2222
# - ./archivebox:/app/archivebox # uncomment this to mount the ArchiveBox source code at runtime (for developers working on archivebox)
2323
# 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+
2625
environment:
2726
- 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
3227
# - PUBLIC_INDEX=True # set to False to prevent anonymous users from viewing snapshot list
3328
# - PUBLIC_SNAPSHOTS=True # set to False to prevent anonymous users from viewing snapshot content
3429
# - 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
3730
# - ADMIN_USERNAME=admin # create an admin user on first run with the given user/pass combo
3831
# - ADMIN_PASSWORD=SomeSecretPassword
32+
# - PUID=911 # set to your host user's UID & GID if you encounter permissions issues
33+
# - PGID=911
3934
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these and sonic container below for better full-text search
4035
# - SEARCH_BACKEND_HOST_NAME=sonic
4136
# - 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
4241
# ...
4342
# add further configuration options from archivebox/config.py as needed (to apply them only to this container)
4443
# 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
4550

4651

4752
######## Optional Addons: tweak examples below as needed for your specific use case ########
@@ -68,9 +73,16 @@ services:
6873
# pihole:
6974
# image: pihole/pihole:latest
7075
# 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
7277
# environment:
7378
# - 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
7486
# volumes:
7587
# - ./etc/pihole:/etc/pihole
7688
# - ./etc/dnsmasq:/etc/dnsmasq.d
@@ -140,3 +152,13 @@ services:
140152
# volumes:
141153
# - ./data:/archivebox
142154
# - ./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

Comments
 (0)