-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.58 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
54
55
56
57
58
59
60
61
62
63
# Docker Compose 配置文件 - Comigo 漫画/书籍浏览服务器
#
# 启动服务: docker-compose up -d
# 查看日志: docker-compose logs -f
# 停止服务: docker-compose down
#
# 直接访问: http://127.0.0.1:1234
# Nginx 反代: http://127.0.0.1:12380/nginx_test/
services:
comigo:
image: yumenaka/comigo:latest
container_name: comigo
restart: unless-stopped
command: ["/app/comigo", "--no-tui", "--base-path", "/nginx_test", "/data"]
ports:
- "1234:1234"
environment:
- COMIGO_PORT=1234
- COMIGO_ENABLE_UPLOAD=true
- COMIGO_LANGUAGE=auto
- TZ=Asia/Shanghai
volumes:
- ./books:/data
- ./config:/root/.config/comigo
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1234/nginx_test/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- comigo-network
nginx:
image: nginx:alpine
container_name: comigo-nginx
restart: unless-stopped
ports:
- "12380:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- comigo
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/nginx_test/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- comigo-network
watchtower:
image: nickfedor/watchtower:latest
container_name: comigo-watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
comigo-network:
driver: bridge