Something went wrong. Try again.
Synapse is a study workspace. Organize courses read and annotate the material, train with generated exercises and watch your progress forked from denishovart.com/synapse
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849# One-service deployment: SQLite in a volume, uploads in a volume, the web# app served by the API itself. Put a TLS reverse proxy in front for anything# beyond localhost (see docs/setup.md).services: synapse: # The default image takes PDF uploads only. For office and markup formats, # build the plus target instead: # build: # context: . # target: plus build: . ports: - '3000:3000' volumes: - synapse-data:/app/apps/api/data - synapse-uploads:/app/apps/api/uploads environment: # Required: cookie signing secret. Generate one with # node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" # Required. The server refuses to start until this is a real random # value (the placeholder below is rejected on purpose): SESSION_SECRET: change-me # Optional AI key for exercise generation and OCR (or set it later in # Settings > AI, which is stored server-side). # OPENAI_API_KEY: sk-... # Allow the desktop app to connect across origins: # CORS_ORIGINS: tauri://localhost,http://tauri.localhost MAX_UPLOAD_MB: 200 # Postgres instead of the zero-config SQLite: uncomment these two # variables and the db service below. # DB_DIALECT: postgres # DATABASE_URL: postgres://synapse:change-me@db:5432/synapse restart: unless-stopped
# db: # image: postgres:17-alpine # environment: # POSTGRES_USER: synapse # POSTGRES_PASSWORD: change-me # POSTGRES_DB: synapse # volumes: # - synapse-db:/var/lib/postgresql/data # restart: unless-stopped
volumes: synapse-data: synapse-uploads: # synapse-db: