Use web setup in shipped Compose guide

This commit is contained in:
Nick Sweeting 2026-08-19 01:39:42 -07:00
parent d71496a600
commit 75bc6056ce
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -733,8 +733,11 @@ def test_unconfigured_public_host_superuser_can_reach_setup_wizard(tmp_path: Pat
assert config_result.returncode == 0, config_result.stderr or config_result.stdout
assert expected in config_result.stdout
compose = yaml.safe_load((Path(__file__).resolve().parents[2] / "docker-compose.yml").read_text())
compose_text = (Path(__file__).resolve().parents[2] / "docker-compose.yml").read_text()
compose = yaml.safe_load(compose_text)
archivebox_environment = compose["services"]["archivebox"]["environment"]
assert "Open http://admin.archivebox.localhost:8000/admin/ to create the first admin and finish web setup." in compose_text
assert "manage createsuperuser" not in compose_text
assert compose["services"]["archivebox"]["restart"] == "unless-stopped"
assert "BASE_URL" in archivebox_environment
assert "SERVER_SECURITY_MODE" in archivebox_environment

View File

@ -3,8 +3,7 @@
# curl -fsSL 'https://docker-compose.archivebox.io' > docker-compose.yml
# docker compose pull
# docker compose up -d --wait
# docker compose exec archivebox archivebox manage createsuperuser
# open 'http://admin.archivebox.localhost:8000'
# Open http://admin.archivebox.localhost:8000/admin/ to create the first admin and finish web setup.
# docker compose exec archivebox archivebox add --depth=1 'https://news.ycombinator.com'
# docker compose exec -T archivebox archivebox add < ~/Downloads/bookmarks.txt