forked from zhaiiker/Chat2API-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 853 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (24 loc) · 853 Bytes
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
services:
chat2api:
build: .
image: chat2api:latest
container_name: chat2api
restart: unless-stopped
ports:
# Expose the unified UI + OpenAI-compatible API on the same port.
- "8080:8080"
environment:
# Bind on all interfaces so the container is reachable.
HOST: "0.0.0.0"
PORT: "8080"
# Pin the management API secret so it survives container restarts.
# Generate one with `openssl rand -hex 32`.
CHAT2API_MANAGEMENT_SECRET: "${CHAT2API_MANAGEMENT_SECRET:-}"
# Optional: pin the credential encryption key (otherwise auto-generated).
CHAT2API_ENCRYPTION_KEY: "${CHAT2API_ENCRYPTION_KEY:-}"
# Where the SQLite-style data file and logs live inside the container.
CHAT2API_DATA_DIR: "/data"
volumes:
- chat2api-data:/data
volumes:
chat2api-data: