docker hub地址

https://registry.hub.docker.com/r/linuxserver/heimdall/

cli安装命令

建议的命令:

1
2
3
4
5
6
7
8
9
10
docker run -d \
--name=heimdall \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 80:80 \
-p 443:443 \
-v </path/to/appdata/config>:/config \
--restart unless-stopped \
lscr.io/linuxserver/heimdall:latest

我的命令:

1
2
3
4
5
6
7
8
9
10
11
docker run -d \
--name=heimdall \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-p 4080:80 \
-p 4443:443 \
-v /home/Disk/2Tsda/app/heimdall/config:/config \
-v /home/Disk/2Tsda/app/heimdall/lang:/lang \
--restart unless-stopped \
lscr.io/linuxserver/heimdall:latest

compose文件

对应的docker-compose.yml文件:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: "3"
services:
heimdall:
container_name: heimdall-inside
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
ports:
- 99:80
- 4081:443
volumes:
- ./config:/config
- ./lang:/lang
restart: unless-stopped
image: lscr.io/linuxserver/heimdall:latest
labels:
- "com.centurylinklabs.watchtower.enable=true"
network_mode: bridge