-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.sample.yaml
35 lines (31 loc) · 1.12 KB
/
docker-compose.sample.yaml
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
# Note: your config file `searcher.yaml` must be placed under `./config/` .
# `redis` must be set to `redis:6379` .
# `runtime_dir` must be set to `/app/config/tg_searcher_data` .
# 注意:配置文件 `searcher.yaml` 必须放在 `./config/` 下面。
# `redis` 必须设置为 `redis:6379` 。
# `runtime_dir` 必须设置为 `/app/config/tg_searcher_data` 。
version: '3'
services:
tg_searcher:
image: sharzy/tg_searcher
container_name: tg_searcher
restart: unless-stopped
volumes:
- ./config:/app/config
depends_on:
- redis
stdin_open: true # once you've logged in, can be commented out 登入后可以注释掉
tty: true # ditto 同上
command:
- -f
- /app/config/searcher.yaml
redis:
image: redis:alpine
container_name: tg_searcher_redis
restart: unless-stopped
command: >-
redis-server --appendonly yes --appendfilename "redis_db.aof" --appendfsync everysec
--no-appendfsync-on-rewrite no --auto-aof-rewrite-percentage 100 --auto-aof-rewrite-min-size 64mb
--aof-load-truncated yes
volumes:
- ./config/redis_data:/data