2024-01-08 11:49:46 +08:00
|
|
|
version: '3'
|
2024-01-08 10:38:45 +08:00
|
|
|
services:
|
|
|
|
one-api:
|
2024-04-02 15:15:34 +08:00
|
|
|
image: justsong/one-api:v0.6.4
|
2024-01-08 10:38:45 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
2024-01-08 11:49:46 +08:00
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:3000
|
2024-01-08 10:38:45 +08:00
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
environment:
|
2024-01-08 17:52:33 +08:00
|
|
|
- SQL_DSN=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:3306)/${PANEL_DB_NAME} # 修改此行,或注释掉以使用 SQLite 作为数据库
|
2024-01-08 10:38:45 +08:00
|
|
|
- TZ=${TZ}
|
2024-01-08 17:52:33 +08:00
|
|
|
# - REDIS_CONN_STRING=redis://redis
|
|
|
|
# - SESSION_SECRET=random_string # 修改为随机字符串
|
|
|
|
# - NODE_TYPE=slave # 多机部署时从节点取消注释该行
|
|
|
|
# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行
|
|
|
|
# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行
|
2024-01-08 10:38:45 +08:00
|
|
|
labels:
|
2024-01-08 11:49:46 +08:00
|
|
|
createdBy: "Apps"
|
2024-01-08 10:38:45 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|