Files
opencode-manager/docker-compose.yml
T
Chris Scott ae644e851d feat: add push notifications with VAPID (#110)
* Add OAuth authentication support for MCP servers

* Improve mobile text sizing with responsive text classes

* refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering

* Add push notifications with VAPID and PWA support

* feat: add VAPID environment variables for push notifications

* Replace SquareFill with MicOff icon for stop recording buttons

* Send push notifications when app is not focused

* Fix stop generation button icons to use X instead of MicOff

* feat: enhance push notification logging and debugging

- Add structured logging throughout push notification flow
- Improve error handling with detailed diagnostics
- Add /api/notifications/debug endpoint for troubleshooting
- Enhanced test notification response with per-subscription results
- Add service worker logging and better install/activate handling

* Improve VAPID push notification configuration with validation and better defaults

- Add validation warnings for VAPID_SUBJECT format (requires mailto: prefix for iOS/Safari)
- Expose VAPID details via notifications API endpoint
- Update default VAPID_SUBJECT from mailto:admin@opencode.local to empty string
- Enhance VAPID logging with key lengths and subject info
- Improve documentation in .env.example with setup instructions

* Fix notification URL to use repo ID instead of filesystem path

* Clean up push notification logging and debug endpoints

* Add push notifications documentation
2026-02-06 11:23:10 -05:00

61 lines
1.9 KiB
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: opencode-manager
ports:
- "5003:5003"
- "5100:5100"
- "5101:5101"
- "5102:5102"
- "5103:5103"
environment:
- NODE_ENV=${NODE_ENV:-production}
- HOST=0.0.0.0
- PORT=5003
- OPENCODE_SERVER_PORT=5551
- DATABASE_PATH=/app/data/opencode.db
- WORKSPACE_PATH=/workspace
- PROCESS_START_WAIT_MS=2000
- PROCESS_VERIFY_WAIT_MS=1000
- HEALTH_CHECK_INTERVAL_MS=5000
- HEALTH_CHECK_TIMEOUT_MS=30000
- MAX_FILE_SIZE_MB=50
- MAX_UPLOAD_SIZE_MB=50
- DEBUG=false
- AUTH_SECRET=${AUTH_SECRET}
- AUTH_TRUSTED_ORIGINS=${AUTH_TRUSTED_ORIGINS:-http://localhost:5003}
- ADMIN_EMAIL=${ADMIN_EMAIL:-}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-}
- ADMIN_PASSWORD_RESET=${ADMIN_PASSWORD_RESET:-false}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID:-}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID:-}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET:-}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID:-}
- DISCORD_CLIENT_SECRET=${DISCORD_CLIENT_SECRET:-}
- AUTH_SECURE_COOKIES=${AUTH_SECURE_COOKIES:-false}
- PASSKEY_RP_ID=${PASSKEY_RP_ID:-localhost}
- PASSKEY_RP_NAME=${PASSKEY_RP_NAME:-OpenCode Manager}
- PASSKEY_ORIGIN=${PASSKEY_ORIGIN:-http://localhost:5003}
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY:-}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY:-}
- VAPID_SUBJECT=${VAPID_SUBJECT:-}
volumes:
- opencode-workspace:/workspace
- opencode-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5003/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 40s
volumes:
opencode-workspace:
driver: local
opencode-data:
driver: local