feat: add Docker Compose support for Discord bot deployment

- Add Dockerfile with multi-stage build for picoclaw
- Add docker-compose.discord.yml for Discord bot service
- Add docker-compose.yml for agent mode service
- Add .env.example with environment variable template
- Add .dockerignore for optimized builds
- Update README.md with Docker Compose section and language switch
- Add README.ja.md (Japanese documentation)
- Update .gitignore with Docker-related entries
This commit is contained in:
Sunwood-ai-labs
2026-02-10 20:34:08 +09:00
committed by lxowalle
parent d165fde011
commit 1b45195acb
8 changed files with 642 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
<img src="https://img.shields.io/badge/license-MIT-green" alt="License">
</p>
[日本語](README.ja.md) | **English**
</div>
---
@@ -118,6 +120,49 @@ make build-all
make install
```
## 🐳 Docker Compose
You can also run PicoClaw using Docker Compose without installing anything locally.
### Quick Start (Discord Bot)
```bash
# 1. Clone this repo
git clone https://github.com/Sunwood-AI-OSS-Hub/picoclaw.git
cd picoclaw
# 2. Set your API keys
cp .env.example .env
vim .env # Set DISCORD_BOT_TOKEN, OPENROUTER_API_KEY, etc.
vim config/config.json # Set provider API keys
# 3. Build & Start
docker compose -f docker-compose.discord.yml up -d
# 4. Check logs
docker compose -f docker-compose.discord.yml logs -f picoclaw
# 5. Stop
docker compose -f docker-compose.discord.yml down
```
### Agent Mode (One-shot)
```bash
# Ask a question
docker compose run --rm picoclaw-agent -m "What is 2+2?"
# Interactive mode
docker compose run --rm picoclaw-agent
```
### Rebuild
```bash
docker compose -f docker-compose.discord.yml build --no-cache
docker compose -f docker-compose.discord.yml up -d
```
### 🚀 Quick Start
> [!TIP]