mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
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>
This commit is contained in:
@@ -125,18 +125,15 @@ docker compose up -d
|
|||||||
|
|
||||||
The app will be available at [http://localhost:3000](http://localhost:3000).
|
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
|
```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)
|
# App + DB + Worker + Bot (also needs BOT_TOKEN in .env)
|
||||||
docker compose --profile full up -d
|
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
|
docker compose --profile bot up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
profiles: ["telegram", "full"]
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: worker/Dockerfile
|
dockerfile: worker/Dockerfile
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
profiles: ["telegram", "full"]
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: worker/Dockerfile
|
dockerfile: worker/Dockerfile
|
||||||
|
|||||||
Reference in New Issue
Block a user