Files
myworkspace/LinkSyncServer/docker-compose.yml
DavidSaylor fe4cbc3537 feat: add web UI, query engine, session management, and 20 E2E tests
- Web UI: login, dashboard, links CRUD, collections, API keys, admin pages
- Query engine: AND/OR/XOR with field filters, tag search, preview endpoint
- Session management: token expiry detection, 401 interceptor, expiry banner
- Links search: tags included, multi-word AND, query mode with set operations
- Collections: static/dynamic, query builder with preview, public tree view
- Save as Collection: convert search results (static) or query (dynamic)
- Dashboard stats: resilient loading with allSettled pattern
- Login page: redesigned with public collections tree view
- Bug fix: query executor None fields crash (notes/description/url/title)
- E2E tests: 20 Playwright tests covering all critical user flows
- All 104 tests passing (84 unit/integration + 20 E2E)
2026-05-22 07:46:53 -05:00

42 lines
1.1 KiB
YAML

# version: '3.8'
services:
web:
build: .
ports:
- "5000:5000"
environment:
- DATABASE_URL=postgresql://linksync:${DB_PASSWORD:-password}@db:5432/linksync
- SECRET_KEY=${SECRET_KEY:-$(openssl rand -base64 32)}
- ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
- DEBUG=${DEBUG:-False}
- HOST=${HOST:-0.0.0.0}
- PORT=${PORT:-5000}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:5555}
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
db:
image: postgres:15-alpine
environment:
- POSTGRES_DB=linksync
- POSTGRES_USER=linksync
- POSTGRES_PASSWORD=${DB_PASSWORD:-password}
volumes:
- linkdata:/var/lib/postgresql/data
- ./config/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
healthcheck:
test: ["CMD", "pg_isready", "-U", "linksync", "-d", "linksync"]
interval: 10s
timeout: 5s
retries: 5
volumes:
linkdata: