From 987167de0c68bb49195d36aacf111dab52280b09 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:13:00 +0000 Subject: [PATCH] Enable worker service by default in docker-compose Remove profiles from worker service in both docker-compose.yml and docker-compose.dev.yml so the worker starts automatically with `docker compose up`. This fixes the issue where verification SMS and the scheduler timer were not working because the worker was never started. The bot remains as an optional profile. Update README to reflect the change. Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com> --- README.md | 9 +++------ docker-compose.dev.yml | 1 - docker-compose.yml | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 909ac3d..163de97 100644 --- a/README.md +++ b/README.md @@ -125,18 +125,15 @@ docker compose up -d The app will be available at [http://localhost:3000](http://localhost:3000). -### Adding Telegram Services +### Adding the Telegram Bot -The worker and bot run as optional profiles so `docker compose up` works with just the app + database: +The worker starts by default with `docker compose up`. The bot runs as an optional profile: ```bash -# App + DB + Telegram worker (needs TELEGRAM_API_ID + TELEGRAM_API_HASH in .env) -docker compose --profile telegram up -d - # App + DB + Worker + Bot (also needs BOT_TOKEN in .env) docker compose --profile full up -d -# Or just the bot (alongside app + db) +# Or just the bot (alongside app + db + worker) docker compose --profile bot up -d ``` diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index a420816..7bb6d88 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -16,7 +16,6 @@ services: retries: 5 worker: - profiles: ["telegram", "full"] build: context: . dockerfile: worker/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index a3f738c..909ab51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,7 +31,6 @@ services: - frontend worker: - profiles: ["telegram", "full"] build: context: . dockerfile: worker/Dockerfile