-
Notifications
You must be signed in to change notification settings - Fork 568
/
docker-compose.yml
102 lines (100 loc) · 3.13 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3"
services:
qd:
image: qdtoday/qd:latest
# image: qdtoday/qd:lite-latest # 精简版
# image: qdtoday/qd:dev # 开发版
container_name: qd
depends_on:
- redis
ports:
- "8923:80"
volumes:
- "./config:/usr/src/app/config"
environment:
# - QD_DEBUG=False
# - BIND=0.0.0.0
# - PORT=80
# - MULTI_PROCESS=False
# - AUTO_RELOAD=False
# - GZIP=True
# - ACCESS_LOG=True
# - DISPLAY_IMPORT_WARNING=True
# - USER0ISADMIN=True
# - STATIC_URL_PREFIX=/static/
- DOMAIN=
# - COOKIE_DAY=5
# - COOKIE_SECURE_MODE=False
- COOKIE_SECRET=binux
- PBKDF2_ITERATIONS=400
- AES_KEY=binux
# - DB_TYPE=sqlite3
# - JAWSDB_MARIA_URL=mysql://user:pass@localhost:3306/dbname?auth_plugin=
# - QD_SQL_LOGGING_NAME=QD.sql
# - QD_SQL_LOGGING_LEVEL=WARNING
# - QD_SQL_POOL_LOGGING_NAME=QD.sql.pool
# - QD_SQL_POOL_LOGGING_LEVEL=WARNING
# - QD_SQL_POOL_SIZE=5
# - QD_SQL_MAX_OVERFLOW=10
# - QD_SQL_POOL_PRE_PING=True
# - QD_SQL_POOL_RECYCLE=3600
# - QD_SQL_POOL_TIMEOUT=30
# - QD_SQL_POOL_USE_LIFO=True
- REDISCLOUD_URL=redis://redis:6379
# - REDIS_DB_INDEX=1
# - QD_EVIL=1000
# - EVIL_PASS_LAN_IP=True
# - WORKER_METHOD=Queue
# - QUEUE_NUM=50
# - CHECK_TASK_LOOP=500
# - TASK_MAX_RETRY_COUNT=8
# - NEW_TASK_DELAY=1
# - TASK_WHILE_LOOP_TIMEOUT=900
# - TASK_REQUEST_LIMIT=1500
# - DOWNLOAD_SIZE_LIMIT=5242880
# - REQUEST_TIMEOUT=30.0
# - CONNECT_TIMEOUT=30.0
# - DELAY_MAX_TIMEOUT=29.9
# - UNSAFE_EVAL_TIMEOUT=3.0
# - USE_PYCURL=True
# - ALLOW_RETRY=True
# - DNS_SERVER=
# - CURL_ENCODING=True
# - CURL_CONTENT_LENGTH=True
# - NOT_RETRY_CODE=301|302|303|304|305|307|400|401|403|404|405|407|408|409|410|412|415|413|414|500|501|502|503|504|599
# - EMPTY_RETRY=True
# - TRACEBACK_PRINT=False
# - PUSH_PIC_URL=https://gitee.com/qd-today/qd/raw/master/web/static/img/push_pic.png
# - PUSH_BATCH_SW=True
# - PUSH_BATCH_DELTA=60
# - WS_PING_INTERVAL=5
# - WS_PING_TIMEOUT=30
# - WS_MAX_MESSAGE_SIZE=10485760
# - WS_MAX_QUEUE_SIZE=100
# - WS_MAX_CONNECTIONS_SUBSCRIBE=30
# - SUBSCRIBE_ACCELERATE_URL=jsdelivr_cdn
# - PROXIES=
# - PROXY_DIRECT_MODE=regexp
# - PROXY_DIRECT=(?xi)\A([a-z][a-z0-9+\-.]*://)?(0(.0){3}|127(.0){2}.1|localhost|\[::([\d]+)?\])(:[0-9]+)?
# - NOTEPAD_LIMIT=20
# - EXTRA_ONNX_NAME=
# - EXTRA_CHARSETS_NAME=
# - MAIL_SMTP=
# - MAIL_PORT=465
# - MAIL_SSL=True
# - MAIL_STARTTLS=False
# - MAIL_USER=
# - MAIL_PASSWORD=
# - MAIL_FROM=${MAIL_USER}
# - MAIL_DOMAIN_HTTPS=False
# - MAILGUN_KEY=
# - MAILGUN_DOMAIN=${DOMAIN}
# - GA_KEY=
redis:
image: redis:alpine
container_name: redis
command: ["--loglevel warning"]
# command: redis-server /usr/local/etc/redis/redis.conf
volumes:
# - ./redis/redis.conf:/usr/local/etc/redis/redis.conf:rw
- ./redis/data:/data:rw