[新服务] Docker dashy dashboard for 各种服务
date
Feb 28, 2024
slug
newservice-dashy-service-dashboard
status
Published
summary
新服务-
tags
service
type
Post
URL
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F79e99652-d5b9-4f77-b4a7-df11d59c6483%2F8646f016-2bb7-4dad-8940-d87a478a4c50%2FUntitled.png?table=block&id=3af5379f-e9b8-4a64-aaf8-2647d0e57351&cache=v2)
Summary
步骤
#
export DOCKER_PROJ=dashy
export DOCKER_PROJ_DOMAIN=$DOCKER_PROJ.xxx
cd /data
git clone https://github.com/Lissy93/dashy.git
cd dashy
vi docker-compose.yml
cat > docker-compose.yml <<EOF
---
# Welcome to Dashy! To get started, run `docker compose up -d`
# You can configure your container here, by modifying this file
version: "3.8"
services:
dashy:
container_name: Dashy
# Pull latest image from DockerHub
image: lissy93/dashy
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
# build: .
# Or, to use a Dockerfile for your archtecture, uncomment the following
# context: .
# dockerfile: ./docker/Dockerfile-arm32v7
# You can also use an image with a different tag, or pull from a different registry, e.g:
# image: ghcr.io/lissy93/dashy or image: lissy93/dashy:arm64v8
# Pass in your config file below, by specifying the path on your host machine
volumes:
# - /path/to/my-config.yml:/app/public/conf.yml
- ./public/conf.yml:/app/public/conf.yml
# - /path/to/item-icons:/app/public/item-icons
- ./public/item-icons:/app/public/item-icons
# Set port that web service will be served on. Keep container port as 80
#ports:
# - 4000:80
# Set any environmental variables
environment:
- NODE_ENV=production
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
# - UID=1000
- UID=0
# - GID=1000
- GID=0
# Specify restart policy
restart: unless-stopped
# Configure healthchecks
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
default:
name: npm_nginx_proxy_manager-network
external: true
EOF
docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f
#2
sha256加密
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F79e99652-d5b9-4f77-b4a7-df11d59c6483%2F3f4dd91e-234f-4501-aa14-ba604c600353%2FUntitled.jpeg?table=block&id=a9a6ca1c-43c3-41d7-8747-fd6aa0151d3f&cache=v2)