Cirry's Blog

Docker安装dashy导航页

2022-09-28
docker
最后更新:2024-03-26
2分钟
318字

dashy是一个开源的自托管的导航页配置服务,具有易于使用的可视化编辑器、状态检查、小工具和主题等功能。你可以将自己常用的一些网站聚合起来放在一起,形成自己的导航页。

下载docker-compose

可能需要修改的地方就是volumes的挂载路径。

1
version: "3.8"
2
services:
3
dashy:
4
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
5
# build: .
6
image: lissy93/dashy
7
container_name: Dashy
8
# Pass in your config file below, by specifying the path on your host machine
9
volumes:
10
- ./config.yml:/app/public/conf.yml # 这个挂载路径自己修改
11
ports:
12
- 4000:80
13
# Set any environmental variables
14
environment:
15
- NODE_ENV=production
12 collapsed lines
16
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
17
- UID=1000
18
- GID=1000
19
# Specify restart policy
20
restart: unless-stopped
21
# Configure healthchecks
22
healthcheck:
23
test: ['CMD', 'node', '/app/services/healthcheck']
24
interval: 1m30s
25
timeout: 10s
26
retries: 3
27
start_period: 40s

下载config.yml

1
appConfig:
2
language: cn # 设置中文
3
auth:
4
enableGuestAccess: false
5
users: # 设置登录账号和权限
6
- user: cirry
7
hash: d2ae9eaa37003087axxxxxxxxxxxxxxxxxxx2be34987525ef1ce55a3079de09e
8
type: admin
9
- user: winnie
10
hash: d2ae9eaa37003087aggggggggggggggggggggbe34987525ef1ce55a3079de09e
11
pageInfo:
12
title: Home Lab
13
sections: # An array of sections
14
- name: Example Section
15
icon: far fa-rocket
17 collapsed lines
16
items:
17
- title: GitHub
18
description: Dashy source code and docs
19
icon: fab fa-github
20
url: https://github.com/Lissy93/dashy
21
- title: Issues
22
description: View open issues, or raise a new one
23
icon: fas fa-bug
24
url: https://github.com/Lissy93/dashy/issues
25
- name: Local Services
26
items:
27
- title: Firewall
28
icon: favicon
29
url: http://192.168.1.1/
30
- title: Game Server
31
icon: https://i.ibb.co/710B3Yc/space-invader-x256.png
32
url: http://192.168.130.1/

icon 可以配置路径,也可以配置font-awesome图标。

本文标题:Docker安装dashy导航页
文章作者:Cirry
发布时间:2022-09-28
版权声明:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可。
感谢大佬送来的咖啡☕
alipayQRCode
wechatQRCode