mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
Compare commits
3 Commits
copilot/fi
...
copilot/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
987167de0c | ||
|
|
4f331d5411 | ||
|
|
8088a86feb |
@@ -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