mirror of
https://github.com/Xtao-Labs/QQ-GitHub-Bot.git
synced 2025-01-30 23:20:21 +00:00
45 lines
960 B
YAML
45 lines
960 B
YAML
version: "2"
|
|
services:
|
|
redis:
|
|
image: redis:6.2
|
|
container_name: bot_redis
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- bot_redis_data:/data
|
|
networks:
|
|
- bot_net
|
|
restart: always
|
|
nonebot:
|
|
build: .
|
|
container_name: bot
|
|
# volumes:
|
|
# - "/etc/timezone:/etc/timezone:ro"
|
|
# - "/etc/localtime:/etc/localtime:ro"
|
|
# - "./.env:/app/.env.prod" # replace "./.env" with your own config file
|
|
ports:
|
|
- "$PORT:$PORT"
|
|
environment:
|
|
- ENVIRONMENT=prod
|
|
- HOST=$HOST
|
|
- PORT=$PORT
|
|
- MAX_WORKERS=1
|
|
- APP_MODULE=bot:app
|
|
# - SECRET=$SECRET
|
|
# - ACCESS_TOKEN=$ACCESS_TOKEN
|
|
- XVFB_INSTALLED=true
|
|
- REDIS_HOST=bot_redis
|
|
- REDIS_PORT=6379
|
|
networks:
|
|
- bot_net
|
|
links:
|
|
- redis
|
|
depends_on:
|
|
- redis
|
|
restart: always
|
|
mem_limit: 1024M
|
|
mem_reservation: 512M
|
|
networks:
|
|
bot_net: {}
|
|
volumes:
|
|
bot_redis_data: {}
|