-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
32 lines (32 loc) · 1.03 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
# PY_VER=3.12 VERSION=$(cat discordai_modelizer/version.py | grep -oP '\d+\.\d+\.\d+') docker compose up --build
# docker exec -it discordai-modelizer-app-1 bash
# discordai_modelizer model list --full
# discordai_modelizer model create -c $CHANNEL_ID -u "$USERNAME"
# discordai_modelizer model delete -m ""
# discordai_modelizer job list --full
# discordai_modelizer job info -j ftjob-SDOuDLTs6a7xu9LMzdhJKo9w --events
# discordai_modelizer job cancel -j ftjob-SDOuDLTs6a7xu9LMzdhJKo9w
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- PY_VER
image: discord-ai/discordai_modelizer: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_modelizer:/usr/local/lib/python${PY_VER}/site-packages/discordai_modelizer
- ./files/:/root/.local/share/discordai/
command:
- sh
- -c
- |
tail -f /dev/null