-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 1.45 KB
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
version: '3.8'
services:
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# restart: always
# network_mode: host
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" # 业务库用户名
MYSQL_PASSWORD: "123123" # 业务库密码
redis:
image: redis
# command: --requirepass "12345678" # redis库密码,不需要密码注释本行
restart: always
environment:
TZ: Asia/Shanghai # 指定时区
volumes:
- ./data/redis/:/data/
grok-share-server:
image: lyy0709/grok-share-server:dev
restart: always
ports:
- 8300:8001
environment:
TZ: Asia/Shanghai # 指定时区
PROXY_URL: "http://proxy:8080/proxy" # 代理服务地址,支持http和https,socks5,没有则留空默认走本地
CHATPROXY: "http://chatproxy:8080/proxy" # 网关配置,留空则不使用网关走本地代理
# 内容审核及速率限制
# AUDIT_LIMIT_URL: "http://auditlimit:8080/audit_limit"
volumes:
- ./config.yaml:/app/config.yaml
- ./data/grok-share-server/:/app/data/
# - ./list.js:/app/resource/public/list.js