forked from cooderl/wewe-rss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.41 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
version: '3.9'
services:
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
# 请修改为自己的密码
MYSQL_ROOT_PASSWORD: 123456
TZ: 'Asia/Shanghai'
MYSQL_DATABASE: 'wewe-rss'
# ports:
# - 13306:3306
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
timeout: 45s
interval: 10s
retries: 10
server:
image: cooderl/wewe-rss-server:latest
ports:
- 4000:4000
depends_on:
db:
condition: service_healthy
environment:
# 数据库连接地址
- DATABASE_URL=mysql://root:123456@db:3306/wewe-rss?schema=public&connect_timeout=30&pool_timeout=30&socket_timeout=30
# 服务接口请求授权码
- AUTH_CODE=123567
# 自动提取全文内容
- FEED_MODE=fulltext
# 服务接口请求限制,每分钟请求次数
- MAX_REQUEST_PER_MINUTE=60
# 外网访问时,需设置为服务器的公网 IP 或者域名地址
- SERVER_ORIGIN_URL=http://localhost:4000
web:
image: cooderl/wewe-rss-web:latest
ports:
- 3000:3000
environment:
# 同 SERVER_ORIGIN_URL
- NEXT_PUBLIC_SERVER_ORIGIN_URL=http://localhost:4000
# 路由前缀,在配置nginx路由时可以使用
- BASE_PATH=''
networks:
wewe-rss:
volumes:
db_data: