文章

docker的一些项目

docker的一些项目

filerun

用途:网盘
链接:https://docs.filerun.com/docker

version: '2'

services:
  db:
    image: mariadb:10.1
    environment:
      MYSQL_ROOT_PASSWORD: your_mysql_root_password
      MYSQL_USER: your_filerun_username
      MYSQL_PASSWORD: your_filerun_password
      MYSQL_DATABASE: your_filerun_database
    volumes:
      - /docker/filerun/db:/var/lib/mysql

  web:
    image: filerun/filerun
    environment:
      FR_DB_HOST: db
      FR_DB_PORT: 3306
      FR_DB_NAME: your_filerun_database
      FR_DB_USER: your_filerun_username
      FR_DB_PASS: your_filerun_password
      APACHE_RUN_USER: www-data
      APACHE_RUN_USER_ID: 33
      APACHE_RUN_GROUP: www-data
      APACHE_RUN_GROUP_ID: 33
    depends_on:
      - db
    links:
      - db:db
    ports:
      - "80:80"
    volumes:
      - /docker/filerun/html:/var/www/html
      - /docker/filerun/user-files:/user-files

lsky

用途:图床

version: '3'
services:
    lsky-pro:
        container_name: lsky-pro
        image: dko0/lsky-pro
        restart: always
        volumes:
            - /docker/lsky-pro/lsky-pro-data:/var/www/html  
        ports:
            - 7791:80
        environment:
            - MYSQL_HOST=mysql
            - MYSQL_DATABASE=lsky-pro
            - MYSQL_USER=lsky-pro
            - MYSQL_PASSWORD=lsky-pro

    mysql:
        image: mysql:8.0
        container_name: lsky-pro-db
        restart: always
        environment:
          - MYSQL_DATABASE=lsky-pro
          - MYSQL_USER=lsky-pro
          - MYSQL_PASSWORD=lsky-pro
          - MYSQL_ROOT_PASSWORD=lsky-pro
        volumes:
          - /docker/lsky-pro/db:/var/lib/mysql

数据库连接地址填container_name: lsky-pro-db,数据库连接端口不输。

komga

用途:漫画本地化
链接:https://komga.org/installation/docker.html

version: "3.9"
services:

  Komga:
    image: gotson/komga:latest
    container_name: komga
    ports:
      - 25600:25600 
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - ./config:/config
      - ./data:/comic
   #  - /book:/book
    restart: unless-stopped

filebrowser

用途:轻量网盘
链接:https://hub.docker.com/r/hurlenko/filebrowser

version: "3"

services:
  filebrowser:
    image: hurlenko/filebrowser
    user: "${UID}:${GID}"
    ports:
      - 443:8080
    volumes:
      - /DATA_DIR:/data
      - /CONFIG_DIR:/config
    environment:
      - FB_BASEURL=/filebrowser
    restart: always

账号密码都是admin

onlyoffice

用途:在线office
链接:https://hub.docker.com/r/onlyoffice/documentserver

docker run -i -t -d -p 80:80 \
    -v /docker/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /docker/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver

安装zfile

用途:文件目录
文档:https://hub.docker.com/r/zhaojun1998/zfile

curl -o /docker/zfile/application.properties https://c.jun6.net/ZFILE/application.properties
version: '3.3'
services:
    zfile:
        container_name: zfile
        restart: always
        ports:
            - '8080:8080'
        volumes:
            - '/root/zfile/db:/root/.zfile-v4/db'
            - '/root/zfile/logs:/root/.zfile-v4/logs'
            - '/root/zfile/file:/data/file'
            - '/root/application.properties:/root/application.properties'
        image: zhaojun1998/zfile

vaultwarden

用途:密码管理
地址:https://github.com/dani-garcia/vaultwarden

docker run -d --name vaultwarden -v /vw-data/:/data/ -p 80:80 vaultwarden/server:latest

运行后创建账号可以禁止注册账号,使用SIGNUPS_ALLOWED=false

version: '3'
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    environment:
      - ADMIN_TOKEN=密码
      - WEBSOCKET_ENABLED=true
      - SIGNUPS_ALLOWED=false
      
    volumes:
      - /vw-data:/data
    ports:
      - 80:80

可以输入域名/admin访问后台

next terminal

用途:轻量化堡垒机
官方文档:https://next-terminal.typesafe.cn/docs/install/docker-install.html

version: '3.3'
services:
  mysql:
    image: mysql:8.0
    environment:
      MYSQL_DATABASE: next-terminal
      MYSQL_USER: next-terminal
      MYSQL_PASSWORD: next-terminal
      MYSQL_ROOT_PASSWORD: next-terminal
    volumes:
      - ./data/mysql:/var/lib/mysql
    restart:
          always
  guacd:
    image: dushixiang/guacd:latest
    volumes:
      - ./data:/usr/local/next-terminal/data
    restart:
          always
  next-terminal:
    image: dushixiang/next-terminal:latest
    environment:
      DB: mysql
      MYSQL_HOSTNAME: mysql
      MYSQL_PORT: 3306
      MYSQL_USERNAME: next-terminal
      MYSQL_PASSWORD: next-terminal
      MYSQL_DATABASE: next-terminal
      GUACD_HOSTNAME: guacd
      GUACD_PORT: 4822
    ports:
      - "8088:8088"
    volumes:
      - /etc/localtime:/etc/localtime
      - ./data:/usr/local/next-terminal/data
    depends_on:
      - mysql
    restart:
      always

账号密码都是admin

flarum

用途:论坛
文档:https://github.com/mondediefr/docker-flarum

version: "3"

services:
  flarum:
    image: mondedie/flarum:stable
    container_name: flarum
    env_file:
      - /root/data/docker_data/flarum/flarum/flarum.env   # 创建一个flarum.env
    volumes:   # 数据映射到本地,数据不会因为Docker停止而丢失
      - /docker/flarum/assets:/flarum/app/public/assets
      - /docker/flarum/extensions:/flarum/app/extensions
      - /docker/flarum/storage/logs:/flarum/app/storage/logs
      - /docker/flarum/nginx:/etc/nginx/flarum
    ports:
      - 8080:8888   # 左边的8080可以自己调整端口号,右边的8888不要改
    restart: unless-stopped
    depends_on:
      - mariadb

  mariadb:
    image: mariadb:10.5
    container_name: mariadb
    environment:
      - MYSQL_ROOT_PASSWORD=123.com
      - MYSQL_DATABASE=flarum
      - MYSQL_USER=flarum
      - MYSQL_PASSWORD=123.com
    volumes:
      - /docker/flarum/mysql/db:/var/lib/mysql  # 数据映射到本地,数据不会因为Docker停止而丢失
    restart: unless-stopped

vi /docker/flarum/flarum.env

DEBUG=false
FORUM_URL=https://test.com     # 可以自行修改,这个是论坛的网站  注意域名地址没有的话 要填IP+port 要不然会报错

# Database configuration
DB_HOST=mariadb
DB_NAME=flarum
DB_USER=flarum
DB_PASS=123456    # 可以自行修改,但是要与docker-compose上面的一致
DB_PREF=flarum_
DB_PORT=3306

# User admin flarum (environment variable for first installation)
# /!\ admin password must contain at least 8 characters /!\
FLARUM_ADMIN_USER=admin          # 可以自行修改,但是要与docker-compose上面的一致
FLARUM_ADMIN_PASS=123456  # 可以自行修改,但是要与docker-compose上面的一致
FLARUM_ADMIN_MAIL=admin@qq.com  # 可以自行修改,修改成自己的邮箱
FLARUM_TITLE=Test flarum  # 可以自行修改,这个是论坛的标题

安装汉化包

docker exec -ti flarum extension require flarum-lang/chinese-simplified

安装emoji

docker exec -ti flarum extension require clarkwinkelmann/flarum-ext-emojionearea

安装上传插件

docker exec -ti flarum extension require fof/upload

team-nav

用途:导航

docker run -d -p 8080:8080 \
 -v /root/team-nav/logs:/logs \
 -v /root/team-nav/database:/database \
 -v /root/team-nav/ext-resources:/ext-resources \
 -v /root/team-nav/config:/config \
 -e nav-name="团队内部导航服务" \
 --restart always \
 --name team-nav \
registry.cn-chengdu.aliyuncs.com/tuituidan/team-nav:1.0.9

默认账号密码:admin 123456
修改配置文件
vim /root/team-nav/config/application.yml

server:
  # 应用使用的端口
  port: 8080

# 服务名,用于页面logo显示
nav-name: 团队服务导航

# 是否开启登录功能
login:
  enable: true

# 是否开启页面上进行密码修改,用户只有一个,请谨慎开启
change-password:
  enable: false

# 账号密码
spring:
  security:
    user:
      name: admin
      password: 123456

Miniflux

用途:web端rss订阅器
文档:https://miniflux.app/docs/installation.html#docker

services:
  miniflux:
    image: miniflux/miniflux:latest
    ports:
      - "80:8080"
    depends_on:
      db:
        condition: service_healthy
    environment:
      - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
      - RUN_MIGRATIONS=1
      - CREATE_ADMIN=1
      - ADMIN_USERNAME=admin
      - ADMIN_PASSWORD=test123
  db:
    image: postgres:15
    environment:
      - POSTGRES_USER=miniflux
      - POSTGRES_PASSWORD=secret
    volumes:
      - ./db:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "miniflux"]
      interval: 10s
      start_period: 30s
volumes:
  miniflux-db:

LibreNMS

用途:网管平台
链接:https://docs.librenms.org/Installation/Docker/

mkdir librenms
cd librenms
wget https://github.com/librenms/docker/archive/refs/heads/master.zip
unzip master.zip
cd docker-master/examples/compose
docker-compose up -d

修改一下env,改成TZ=Asia/Shanghai
访问不了就重启一下系统

License:  CC BY 4.0