GithubHelp home page GithubHelp logo

ywfwj2008 / bt-panel Goto Github PK

View Code? Open in Web Editor NEW
15.0 0.0 21.0 1.31 MB

本Docker基于宝塔Linux面板,集成环境包含 Nginx PHP5.6 PHP7 FTP等基本服务

License: Apache License 2.0

Shell 77.40% Dockerfile 6.45% PHP 16.15%
php linux docker

bt-panel's Introduction

宝塔Linux面板 Docker 版

Version:7.8 免费版

本Docker基于宝塔Linux面板,集成环境包含 Nginx PHP5.6 PHP7 FTP等基本服务,未包含Mysql,建议用外链服务的方式支持。

三级镜像

快速开始

docker run \
--name bt \
-p 8888:8888 \
-p 888:888 \
-p 80:80 \
-p 443:443 \
-p 21:21 \
-p 20:20 \
--privileged=true \
--shm-size=1g \
--restart always \
-d ywfwj2008/bt-php-nginx:latest

获取BT管理后台地址和用户名与密码:
docker exec -it bt bt default

带 MYSQL 和 REDIS 的 运行案例

run mysql

如果需要外连mysql,先运行mysql镜像。宝塔镜像中使用link参数连接。

docker run \
    --name mysql \
    --restart always \
    -v /data/config/mysql:/etc/mysql/conf.d \
    -v /data/mysql:/var/lib/mysql \
    -e MYSQL_ROOT_PASSWORD=my-secret-pw \
    -d mysql:latest \
        --default-authentication-plugin=mysql_native_password \
        --character-set-server=utf8mb4 \
        --collation-server=utf8mb4_unicode_ci

run redis

如果需要外连redis,先运行redis镜像。宝塔镜像中使用link参数连接。

docker run \
    --name redis \
    --restart always \
    -e 'REDIS_PASSWORD=redispassword' \
    -v /data/redis-persistence:/var/lib/redis \
    -d sameersbn/redis --appendonly yes

run web server

运行docker时,可以通过 BT_PASSWORD 自定义登录密码
6.0以上版本不再支持自定义密码,请通过执行以下命令获取
docker exec -it bt bt default

docker run \
    --name bt \
    --restart always \
    --link mysql:localmysql \
    --link redis:localredis \
    -p 8888:8888 \
    -p 888:888 \
    -p 80:80 \
    -p 443:443 \
    -p 21:21 \
    -p 20:20 \
    -v /data/backup:/www/backup \
    -v /data/wwwlogs:/www/wwwlogs \
    -v /data/wwwroot:/www/wwwroot \
    --privileged=true \
    --shm-size=1g \
    -d ywfwj2008/bt-php-nginx:latest

备份宝塔配置建议使用宝塔内置的备份功能

联系方式

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.