Giter VIP home page Giter VIP logo

n1's Introduction

n1优秀帖子集合

目前使用稳定 Armbian 5.77 debian+docker+Portainer汉化面板+openwrt的DDBR备份

只要你的N1能U盘启动,N1系统随心换,DDBR备份的各

启用docker openwrt后 armbian宿主机的上网问题解决方案

40多个N1可用docker镜像-百度云同步、1898种dos游戏、花生壳、可道云、蚂蚁笔记

docker安装记录

nginx 8082


docker run -d -p 8082:80 --name docker-nginx \
-v /data/nginx/www:/usr/share/nginx/html:ro \
-v /data/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
-v /data/nginx/logs:/var/log/nginx \
-v /mnts/download:/usr/share/nginx/download:ro \
nginx

nginx.conf 的root要指向docker的目录,比如root /usr/share/nginx/html; nginx.conf示例(vue项目、下载列表)

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /usr/share/nginx/html;

        index index.html index.htm index.nginx-debian.html;

        server_name _;
        location / {
                try_files $uri $uri/ @router;
                index index.html;
        }
        location @router {
                rewrite ^.*$ /index.html last;
        }

        location /download {
            charset  utf-8;
            #root /data/; #目录是/data/download/
            alias /usr/share/nginx/download;

            if ($request_filename ~* ^.*?\.(txt)$){
            add_header Content-Disposition 'attachment';
            add_header Content-Type: 'APPLICATION/OCTET-STREAM';}

            autoindex on;
            autoindex_exact_size   off;
            autoindex_localtime    on;
            #access_log  /var/log/nginx/download.log  main;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

    }

aria2NG


docker run --name aria2-ariang \
--restart always \
-p 6800:6800 -p 6880:80 -p 6888:8080 \
-v /mnts/download:/aria2/downloads \
-v /data/aria2/conf:/aria2/conf \
-e SECRET=086a0519b7556e9dbc93 \
colinwjd/aria2-ariang

oneindex


这个没用

docker run -d --name oneindex \
    -p 8083:80 --restart=always \
    -v /data/oneindex/config:/var/www/html/config:ro \
    -v /data/oneindex/cache:/var/www/html/cache:rw \
    -e REFRESH_TOKEN='0 * * * *' \
    -e REFRESH_CACHE='*/10 * * * *' \
    setzero/oneindex

这个可以

docker run -d \
  --name oneindex \
  -p 8086:80 \
  --restart=always \
  -v /data/oneindex/config:/var/www/html/config \
  -v /data/oneindex/cache:/var/www/html/cache \
  -e REFRESH_TOKEN='0 * * * *' \
  -e REFRESH_CACHE='*/10 * * * *' \
  lstcml/oneindex

bypy


docker run -dit \
  --name bypy \
  --restart=always \
  -v /docker/bypy/sync:/sync \
  lstcml/bypy

markdown


docker run -d \
  --name markdown \
  --restart=always \
  -p 8087:2000 \
  lstcml/n1_markdown

安装并配置Samba


docker pull dperson/samba

docker run -d \
  --restart=always \
  --name samba -p 139:139 \
  -p 445:445 --hostname 'N1' -v \
  /mnts/download:/mount -d dperson/samba \
  -u "username;password"  -s "FileShare;/mount;yes;no;yes;all;none" \
  dperson/samba

tomact(Apache Tomcat/9.0.37,jdk8)


docker pull tomcat:jdk8-adoptopenjdk-hotspot
docker run  -d \
--restart=always \
--name tomcat \
-p 8080:8080 \
-v /data/tomcat/webapps/examples:/usr/local/tomcat/webapps/examples \
tomcat:jdk8-adoptopenjdk-hotspot

输入http://192.168.1.10:8080/examples即可看到效果

mysql(只有8.0才支持arm64/v8)


docker pull mysql/mysql-server:latest

docker run -d \
-p 3306:3306 \
--name mysql \
--restart=always \
mysql/mysql-server

查看密码

docker logs mysql 2>&1 | grep GENERATED

进入mysql

docker exec -it mysql mysql -uroot -p

我的容器

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.