Init project
This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
email-to-discord:
|
||||
build: .
|
||||
container_name: email-to-discord-monitor
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# メールサーバー設定
|
||||
- IMAP_SERVER=imap.gmail.com
|
||||
- IMAP_PORT=993
|
||||
- USE_SSL=true
|
||||
- MAILBOX=INBOX
|
||||
|
||||
# メール認証情報(実際の値に変更してください)
|
||||
- EMAIL_USER=your-email@gmail.com
|
||||
- EMAIL_PASSWORD=your-app-password
|
||||
|
||||
# Discord Webhook URL(実際のURLに変更してください)
|
||||
- DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
|
||||
|
||||
# 監視設定
|
||||
- CHECK_INTERVAL=60 # チェック間隔(秒)
|
||||
|
||||
# ログの設定
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
# リソース制限
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
reservations:
|
||||
memory: 128M
|
||||
Reference in New Issue
Block a user