-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (96 loc) · 2.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
101 lines (96 loc) · 2.57 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3.8'
services:
# MySQL 数据库服务
mysql:
image: mysql:8.0.45
container_name: elysiananime-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: elysiananime
MYSQL_USER: tester
MYSQL_PASSWORD: tester123456
TZ: Asia/Shanghai
ports:
- "3306:3306"
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/logs:/var/log/mysql
- ./docker/mysql/init:/docker-entrypoint-initdb.d
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --default-authentication-plugin=mysql_native_password
- --skip-name-resolve
networks:
- elysiananime-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 10s
timeout: 5s
retries: 5
# Redis 缓存服务
redis:
image: redis:7-alpine
container_name: elysiananime-redis
restart: always
environment:
TZ: Asia/Shanghai
ports:
- "6379:6379"
volumes:
- ./docker/redis/data:/data
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes
networks:
- elysiananime-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# ElysianAnime 应用服务
elysiananime:
build:
context: .
dockerfile: Dockerfile
args:
- BUILDKIT_INLINE_CACHE=1
container_name: elysiananime-app
image: cocoteanet/elysiananime:latest
restart: always
environment:
TZ: Asia/Shanghai
ports:
- "8088:8088"
volumes:
- ./docker/app/conf:/app/conf
- ./docker/oss/elysiananime:/app/files
- ./docker/app/logs:/app/logs
networks:
- elysiananime-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8088/system/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- WEBUI_PORT=8080
- TORRENTING_PORT=6881
volumes:
- ./docker/qbittorrent/config:/config
- ./docker/qbittorrent/downloads:/downloads
- ./docker/oss/elysiananime/animation:/app/files/animation/
ports:
- 9001:8080
restart: unless-stopped
networks:
elysiananime-network:
driver: bridge