-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (61 loc) · 2.24 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
56
57
58
59
60
61
62
63
services:
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
user: 0:0 #用户id
ports:
- 4533:4533 #左侧端口如有冲突,可随意修改
volumes:
- /volume1/docker/music/navidrome:/data #数据路径
- /volume1/music:/music:ro #音乐路径
environment:
#程序默认语言
- ND_DEFAULTLANGUAGE=zh-Hans
#启用GRAVATAR头像
- ND_ENABLEGRAVATAR=true
#关闭转码,如需要转码请设置为true
- ND_ENABLETRANSCODINGCONFIG=false
#SPOTIFY相关
# - ND_SPOTIFY_ID=
# - ND_SPOTIFY_SECRET=
#LAST.FM相关
# - ND_LASTFM_LANGUAGE=zh
# - ND_LASTFM_APIKEY=
# - ND_LASTFM_SECRET=
#PROXY相关
# - HTTP_PROXY=http://proxy:port
# - HTTPS_PROXY=http://proxy:port
restart: unless-stopped
music-tag:
image: xhongc/music_tag_web:latest
container_name: music-tag-web
# network_mode: host
ports:
- 8002:8002
volumes:
- /volume1/music:/app/media:rw
- /volume1/docker/music/tag:/app/data
environment:
- PUID=0
- PGID=0
# - MYSQL_HOST=localhost # mysql 局域网ip地址(没有可以不填,默认使用 sqlite)
# - MYSQL_PASSWORD=123456789abc # mysql密码(没有可以不填,默认使用 sqlite)
# - MYSQL_DB_NAME=music # 数据表名称(没有可以不填,默认使用 sqlite)
# - MYSQL_USER=root # mysql 用户名(默认使用 root)
# - MYSQL_PORT=3306 # mysql 端口(默认使用 3306)
- WORKER_NUM=8 # 后台并发执行任务的worker数量# - WORKER_NUM=8 # 后台并发执行任务的worker数量
restart: always
# jobdb:
# image: mysql:latest
# restart: always
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --init-connect='SET NAMES utf8mb4;' --innodb-flush-log-at-trx-commit=0 --explicit_defaults_for_timestamp=true
# expose:
# - "3306"
# ports:
# - 8121:3306
# volumes:
# - /volume1/docker/music/mysql:/docker-entrypoint-initdb.d
# - /volume1/docker/music/mysql/my.cnf:/etc/mysql/conf.d/mysql.cnf
# - /volume1/docker/music/mysql/data:/var/lib/mysql
# environment:
# - MYSQL_ROOT_PASSWORD=123456789abc