QQ-GitHub-Bot/docker-compose.yml

38 lines
712 B
YAML
Raw Normal View History

2021-03-14 04:58:50 +00:00
version: "3"
2020-09-17 14:42:41 +00:00
services:
2021-03-14 04:58:50 +00:00
redis:
image: redis:6.2
container_name: bot_redis
command: redis-server --appendonly yes
volumes:
- bot_redis_data:/data
networks:
- bot_net
2020-09-17 14:42:41 +00:00
nonebot:
build: .
2021-03-14 04:58:50 +00:00
container_name: bot
2020-09-17 14:42:41 +00:00
volumes:
- "/etc/localtime:/etc/localtime"
- "./:/app/"
ports:
2021-03-09 10:39:46 +00:00
- "$PORT:$PORT"
2020-09-17 14:42:41 +00:00
environment:
- ENVIRONMENT=prod
2021-03-09 10:39:46 +00:00
- HOST=$HOST
- PORT=$PORT
2020-09-17 14:42:41 +00:00
- APP_MODULE=bot:app
2021-03-09 10:39:46 +00:00
# - SECRET=$SECRET
# - ACCESS_TOKEN=$ACCESS_TOKEN
2021-03-15 12:13:55 +00:00
- REDIS_HOST=bot_redis
- REDIS_PORT=6379
2021-03-14 04:58:50 +00:00
networks:
- bot_net
links:
- redis
depends_on:
- redis
networks:
bot_net: {}
volumes:
bot_redis_data: {}