Skip to content

Commit edd0d11

Browse files
committed
deploy: add docker compose example
1 parent 4a400f5 commit edd0d11

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docker-compose.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: '3.8'
2+
3+
services:
4+
xunity-db:
5+
image: postgres:alpine
6+
environment:
7+
POSTGRES_DB: "xunity"
8+
POSTGRES_USER: "xunity"
9+
POSTGRES_PASSWORD: "xunity"
10+
ports:
11+
- "5432:5432"
12+
networks:
13+
- xunity-network
14+
15+
xunity:
16+
image: ghcr.io/returntofirst/xunity-autotranslator-openai:latest
17+
environment:
18+
BASE_URL: "https://api.openai.com/v1"
19+
API_KEY: "api_key_here"
20+
MODEL_NAME: "gpt-3.5-turbo"
21+
DB_TYPE: "postgres"
22+
POSTGRES_HOST: "xunity-db"
23+
POSTGRES_PORT: "5432"
24+
POSTGRES_USER: "xunity"
25+
POSTGRES_PASSWORD: "xunity"
26+
POSTGRES_DB: "xunity"
27+
ports:
28+
- "5000:5000"
29+
depends_on:
30+
- xunity-db
31+
networks:
32+
- xunity-network
33+
34+
networks:
35+
xunity-network:
36+
driver: bridge

0 commit comments

Comments
 (0)