-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.16 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
version: '3'
services:
redis:
image: redis:6.2.2
container_name: redis
hostname: redis
restart: always
command: redis-server --requirepass zyWGcdW4QOMcjXpw --appendonly no
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
mysql:
image: mysql:8.0.26
hostname: mysql
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "OVFEirCr3vmX49xU"
MYSQL_DATABASE: "one"
TZ: Asia/Shanghai
command:
--wait_timeout=31536000
--interactive_timeout=31536000
--max_connections=1000
--default-authentication-plugin=mysql_native_password
volumes:
- "./data/mysql/data/mysql/data:/var/lib/mysql"
- "./data/mysql/data/mysql/logs:/logs"
one-key:
image: kewei159/one-key:latest
container_name: one-key
hostname: one-key
restart: always
environment:
DB_URL: mysql+pymysql://root:OVFEirCr3vmX49xU@mysql:3306/one
REDIS_URL: redis://:zyWGcdW4QOMcjXpw@redis:6379/0
SAVE_LOG: "true"
LIMIT_TOKEN: "true"
ports:
- "8000:8000"
volumes:
- "./logs:/app/logs"
depends_on:
- mysql
- redis