Files
sigilbox/docker-compose.yml
2026-05-15 09:12:28 -07:00

34 lines
834 B
YAML

version: "3.8"
services:
archiver:
build: .
environment:
- ARCHIVE_PATH=/archives
- DISPLAY=:99
volumes:
- ./archives:/archives
# For headful testing, uncomment the line below and run with --profile=headful
# - /tmp/.X11-unix:/tmp/.X11-unix:rw
command: ["archive", "--help"]
# Headful profile: runs a VNC server so you can watch the browser
archiver-headful:
profiles: ["headful"]
build: .
environment:
- ARCHIVE_PATH=/archives
- DISPLAY=:99
volumes:
- ./archives:/archives
ports:
- "5900:5900"
command: >
sh -c "
apt-get update && apt-get install -y x11vnc xvfb &&
Xvfb :99 -screen 0 1366x768x24 &
x11vnc -display :99 -nopw -forever &
sleep 2 &&
node src/cli.mjs archive $$URL
"