-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 1.04 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
40
41
42
43
version: '3'
services:
mysql:
image: mysql:8
container_name: share-mysql
command: --mysql-native-password=ON --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
volumes:
- ./data/mysql/:/var/lib/mysql/
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 'fakeoai'
MYSQL_DATABASE: 'share'
redis:
image: redis:7.4
container_name: share-redis
command: --requirepass "fakeoai" # redis库密码,不需要密码注释本行
restart: always
environment:
TZ: Asia/Shanghai
volumes:
- ./data/redis/:/data/
share:
image: fakeoai/share
# image: fakeoai/share-thirdparty # 第三方模式镜像
container_name: share
restart: always
environment:
TZ: Asia/Shanghai
ports:
- 1024:1024
# - 443:443 # 如果需要https,请取消注释本行
volumes:
- ./config:/app/config
- ./keys:/app/keys
- ./logs:/app/logs
- ./public:/app/public
depends_on:
- redis
- mysql