forked from liuhuapiaoyuan/chatgpt-mirror-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.36 KB
/
docker-compose.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.8'
services:
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
volumes:
- ./data/mysql/:/var/lib/mysql/
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
environment:
TZ: Asia/Shanghai # 指定时区
MYSQL_ROOT_PASSWORD: "123456" # 配置root用户密码
MYSQL_DATABASE: "cool" # 业务库名
MYSQL_USER: "cool" # 业务库用户名
MTSQL_PASSWORD: "123123" # 业务库密码
redis:
image: redis
# command: --requirepass "12345678" # redis库密码,不需要密码注释本行
restart: always
environment:
TZ: Asia/Shanghai # 指定时区
volumes:
- ./data/redis/:/data/
chatgpt-mirror-server:
image: xyhelper/chatgpt-mirror-server:latest
restart: always
depends_on:
- mysql
- redis
ports:
- 8100:8001
environment:
TZ: Asia/Shanghai # 指定时区
# 接入网关地址
CHATPROXY: "https://demo.xyhelper.cn"
# 增加环境变量的配置
ASSET_PREFIX: ""
# 接入网关的authkey
AUTHKEY: "xyhelper"
# 是否只使用token验证
ONLYTOKEN: true
# API对接验证
# APIAUTH: "myauthkey"
volumes:
- ./data/chatgpt-mirror-server/:/app/data/