forked from chenyme/grok2api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 768 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (25 loc) · 768 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
26
services:
2grok2api:
container_name: 2grok2api
build:
context: .
dockerfile: Dockerfile
image: 2grok2api:local
ports:
- "9765:9765"
environment:
TZ: Asia/Shanghai
LOG_LEVEL: INFO
SERVER_PORT: 9765
SERVER_WORKERS: 1
SERVER_STORAGE_TYPE: local
# SERVER_STORAGE_URL:
# SERVER_STORAGE_TYPE: (local, redis, mysql, pgsql) default: local
# SERVER_STORAGE_URL: (local mode is empty) default: empty
# Redis: redis://localhost:6379/0 or redis://:password@localhost:6379/0
# MySQL: mysql+aiomysql://user:pass@localhost/db
# PgSQL: postgresql+asyncpg://user:pass@localhost/db
volumes:
- ./data:/app/data
- ./logs:/app/logs
restart: unless-stopped