Coder Social home page Coder Social logo

docker-image-bt-panel's Introduction

Docker Bt Panel

宝塔Linux面板是一款简单好用的服务器管理面板, 2分钟安装即可一键管理服务器。

安装 Docker

Windows

MacOS

Linux

安装 Docker Compose

镜像下载

# 下载命令
docker pull itxq/bt:latest

环境变量配置(使用docker-composer启动时)

  • 创建 .env 文件
  • 复制 .example.env 文件内容 到 .env 文件
  • 修改 .env 文件的中的配置项

启动命令示例:

# docker 启动
docker run -p 8888:8888 --name bt-server itxq/bt:latest
# docker-composer 启动
docker-compose -f docker-compose.yml up -d

建议端口映射:

  • 8888 宝塔面板端口
  • 8080 Tomcat默认端口
  • 3306 MySQL默认端口
  • 888 phpMyAdmin默认端口
  • 443 https默认端口
  • 80 网站默认端口
  • 21 FTP默认端口
  • 20 FTP主动模式数据端口
  • 39000-40000 FTP被动模端口范围

建议挂载目录:

  • /www/wwwroot 站点目录
  • /www/wwwlogs 日志目录
  • /www/backup/database 数据库备份存放目录
  • /www/backup/site 网站备份存放目录
  • /www/backup/path 目录备份存放目录
  • /www/server/cron 定时任务脚本存放目录
  • /www/Recycle_bin 回收站目录
  • /www/server/data 数据库数据目录

默认登录信息:

常用命令小结:

# 提交新镜像
docker commit server-bt server-bt:latest
# 导出
docker export -o server-bt.tar server-bt
# 导入
docker import server-bt.tar server-bt:latest
# 进入容器
docker exec -i -t  server-bt /bin/bash
# 可视化管理工具
docker run -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /portainer:/data --restart=always --name server-portainer portainer/portainer:latest 

docker-image-bt-panel's People

Contributors

itxq avatar

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.