-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
36 lines (36 loc) · 1.11 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# PY_VER=3.12 VERSION=$(cat discordai/version.py | grep -oP '\d+\.\d+\.\d+') docker compose up --build
# docker exec -it discordai-app-1 bash
# discordai model list --full
# discordai model create -c $CHANNEL_ID -u "$USERNAME"
# discordai model delete -m ""
# discordai job list --full
# discordai job info -j ftjob-SDOuDLTs6a7xu9LMzdhJKo9w --events
# discordai job cancel -j ftjob-SDOuDLTs6a7xu9LMzdhJKo9w
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- PY_VER
image: discord-ai/discordai:py${PY_VER}-v${VERSION}
working_dir: /main
environment:
- DISCORD_BOT_TOKEN
- OPENAI_API_KEY
- CHANNEL_ID
- USERNAME
- PYTHONUNBUFFERED=1
env_file: .env
volumes:
- ./discordai:/usr/local/lib/python${PY_VER}/site-packages/discordai
- ./discordAI-modelizer/discordai_modelizer:/usr/local/lib/python${PY_VER}/site-packages/discordai_modelizer
- ./init.sh:/main/init.sh
- ./files/:/root/.local/share/discordai/
command:
- sh
- -c
- |
# ./init.sh
# discordai bot start
tail -f /dev/null