-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.02 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
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
app:
build: .
container_name: dify-tools
ports:
- "8080:8080"
depends_on:
- mysql
- redis
environment:
- TZ=Asia/Shanghai
volumes:
- ./config.yaml:/app/config.yaml
- ./logs:/app/logs
restart: unless-stopped
mysql:
image: mysql:8.0
container_name: dify-tools-mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=dify_tools
- MYSQL_USER=dify
- MYSQL_PASSWORD=dify123
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
redis:
image: redis:7.0-alpine
container_name: dify-tools-redis
command: redis-server --requirepass redis123
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
mysql_data:
driver: local
redis_data:
driver: local
networks:
default:
name: dify-tools-network
driver: bridge