Deskconn Account Service manages user accounts, devices, and desktop information.
Before starting this service, make sure the Deskconn Router is running.
- Install dependencies:
make setup- Configure environment variables:
Create or edit the .env file with appropriate values:
ACCOUNT_SERVICE_DB_USER=account-service
ACCOUNT_SERVICE_DB_PASSWORD=account-service-password
ROUTER_DB_USER=router
ROUTER_DB_PASSWORD=router-password
DESKCONN_POSTGRES_HOST=localhost
DESKCONN_DATABASE_URL=postgresql+asyncpg://${ACCOUNT_SERVICE_DB_USER}:${ACCOUNT_SERVICE_DB_PASSWORD}@${DESKCONN_POSTGRES_HOST}:5432/deskconn_account_service
DESKCONN_ACCOUNT_AUTHID=deskconn-account-service
DESKCONN_ACCOUNT_PRIVATE_KEY=db3f6235591a98b704f87f46f66d74645864479f32446a32d95c4826a6791b0a
RESEND_API_KEY=your-resend-api-key
COTURN_SECRET=your-coturn-secret
ROUTER_URL=ws://localhost:8080/wsDebug mode: Set
X_DEBUG=trueto skip email sending and print OTPs to stdout instead. When enabled,RESEND_API_KEYis not required. Useful for local development.
- Start Postgres and apply migrations:
make dbmake runBefore running with Docker, make sure Deskconn Router is already running via its own docker-compose.yml.
Set these values in your .env for Docker:
# Use the container name for postgres (same docker-compose network)
DESKCONN_POSTGRES_HOST=deskconn-account-service-postgres
# Use host.docker.internal to reach the router running on the host
ROUTER_URL=ws://host.docker.internal:8080/wsThen start the service:
make run-docker