diff --git a/.env.example b/.env.example index 9215c88..dc4532b 100644 --- a/.env.example +++ b/.env.example @@ -15,14 +15,3 @@ LINKLOG_TRACKING_PARAMS= # Keep the default path when using the named linklog_data volume. LINKLOG_DATABASE_PATH=/app/backend/data/linklog.db -# Traefik -TRAEFIK_IMAGE=traefik:v3.1 -TRAEFIK_CONTAINER_NAME=linklog-traefik -TRAEFIK_HOST=localhost -TRAEFIK_HTTP_PORT=80 -TRAEFIK_HTTP_INTERNAL_PORT=80 -TRAEFIK_DASHBOARD_PORT=8080 -TRAEFIK_DASHBOARD_BIND_ADDRESS=127.0.0.1 -TRAEFIK_API_INSECURE=true -TRAEFIK_RESTART_POLICY=unless-stopped -DOCKER_SOCKET_PATH=/var/run/docker.sock diff --git a/README.md b/README.md index 73f0958..111da91 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ frontend/ Jinja templates and browser-side assets webextension/ Firefox Manifest V3 extension Logo.svg Source logo artwork used by the web and extension interfaces Dockerfile Backend container image -docker-compose.yml App plus Traefik for local proxying +docker-compose.yml App with traefik reverse proxy hooks REQUIREMENTS.md Product requirements VIBE/ Conversation and prompt logs ``` @@ -130,7 +130,7 @@ The manifest includes stable Firefox extension metadata and references the packa Temporary extensions are removed when Firefox restarts. Reload the extension from `about:debugging` after changing its files. -## Docker And Traefik +## Docker Create the Docker environment file before starting the stack: @@ -147,12 +147,8 @@ The main configurable values are: | `LINKLOG_SECRET_KEY` | token signing/security secret | required in Docker | | `LINKLOG_DATABASE_PATH` | SQLite file path inside the container | `/app/backend/data/linklog.db` | | `LINKLOG_TOKEN_EXPIRY_DAYS` | access-token lifetime | `30` | -| `LINKLOG_TRACKING_PARAMS` | comma-separated tracking parameters | built-in list | +| `LINKLOG_TRACKING_PARAMS` | comma-separated tracking parameters (stripped from logged URLs) | built-in list | | `TRAEFIK_HOST` | hostname routed by Traefik | `localhost` | -| `TRAEFIK_HTTP_PORT` | host port for the application proxy | `80` | -| `TRAEFIK_DASHBOARD_PORT` | host port for the dashboard | `8080` | -| `TRAEFIK_DASHBOARD_BIND_ADDRESS` | host address for the dashboard | `127.0.0.1` | -| `TRAEFIK_API_INSECURE` | enable the local dashboard API | `true` | | `APP_PORT` | direct host port for FastAPI | `8000` | The full set of supported variables is listed in `.env.example`. Application variables are passed into the container by Compose; Docker and Traefik variables are used by Compose itself. diff --git a/VIBE/CHAT_LOG.md b/VIBE/CHAT_LOG.md index 9958e78..02706f2 100644 --- a/VIBE/CHAT_LOG.md +++ b/VIBE/CHAT_LOG.md @@ -427,3 +427,9 @@ Make sure the addon conforms to Firefox guidelines ### Assistant outcome Validated the Firefox package and corrected its manifest structure. The toolbar and add-on metadata use exact square PNG icons, popup/settings use the SVG logo, stable Firefox-specific identity metadata is present, all referenced files exist, and extension scripts pass syntax validation. The backend suite remains green. + +### User +How come when te container starts after docker compose down -v the database is still populated with old links + +### Assistant outcome +Inspected the active container and confirmed it uses `/app/backend/data/linklog.db` from the Compose volume `linklog_linklog_data`, containing 230 links. The current Compose project maps logical `linklog_data` to that prefixed volume. `docker compose down` preserves it; only `docker compose down -v` from the same project removes it. A different directory/project, an external volume, or stopping without `-v` can therefore preserve the data. diff --git a/VIBE/PROMPTS.md b/VIBE/PROMPTS.md index 8a944ff..df64495 100644 --- a/VIBE/PROMPTS.md +++ b/VIBE/PROMPTS.md @@ -74,6 +74,7 @@ 70. Make sure the addon conforms to Firefox guidelines 71. Create a make file that will regenerate the logo and icon files from LinkLog.svg 72. Make sure the addon conforms to Firefox guidelines +73. How come when te container starts after docker compose down -v the database is still populated with old links ## Future entries diff --git a/docker-compose.yml b/docker-compose.yml index 9fba985..40e5ac7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,22 +28,6 @@ services: - "traefik.http.routers.linklog.entrypoints=web" - "traefik.http.services.linklog.loadbalancer.server.port=8000" - traefik: - image: ${TRAEFIK_IMAGE:-traefik:v3.1} - container_name: ${TRAEFIK_CONTAINER_NAME:-linklog-traefik} - command: - - --providers.docker=true - - --entrypoints.web.address=:${TRAEFIK_HTTP_INTERNAL_PORT:-80} - - --api.insecure=${TRAEFIK_API_INSECURE:-true} - ports: - - "${TRAEFIK_HTTP_PORT:-80}:${TRAEFIK_HTTP_INTERNAL_PORT:-80}" - - "${TRAEFIK_DASHBOARD_BIND_ADDRESS:-127.0.0.1}:${TRAEFIK_DASHBOARD_PORT:-8080}:8080" - restart: ${TRAEFIK_RESTART_POLICY:-unless-stopped} - depends_on: - app: - condition: service_healthy - volumes: - - "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock:ro" - + volumes: linklog_data: