首页 > 其他分享 >Docker Installing spug 运维平台

Docker Installing spug 运维平台

时间:2023-07-27 16:22:51浏览次数:37  
标签:compose 80 spug Installing MYSQL Docker docker

Docker Installing

Requirement Environment

  • Docker
  • Modern browser

Install Steps

The flow of installation is based on Centos7.x.

1. Install docker

WARNING

if you have installed docker, you can skip this step.

The following steps are for Centos, please refer to Docker Official Document for other systems.

yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-compose-plugin
systemctl enable docker
systemctl start docker

2. Create docker-compose.yml

vi docker-compose.yml
version: "3.3"
services:
db:
image: mariadb:10.8.2
container_name: spug-db
restart: always
command: --port 3306 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- /data/spug/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=spug
- MYSQL_USER=spug
- MYSQL_PASSWORD=spug.cc
- MYSQL_ROOT_PASSWORD=spug.cc
spug:
image: openspug/spug-service
container_name: spug
privileged: true
restart: always
volumes:
- /data/spug/service:/data/spug
- /data/spug/repos:/data/repos
ports:
# if port 80 is occupied, you can replace it with other ports, such as: - "8000:80"
- "80:80"
environment:
- MYSQL_DATABASE=spug
- MYSQL_USER=spug
- MYSQL_PASSWORD=spug.cc
- MYSQL_HOST=db
- MYSQL_PORT=3306
depends_on:
- db

3. Start container

docker compose up -d
WARNING

docker-compose install method is different, you may also need to execute docker-compose up -d

4. Initialization

The following operation will create an administrator account with the user name admin and password spug.dev, you can replace the administrator account/password by yourself.

docker exec spug init_spug admin spug.dev

5. Access test

Enter http://localhost:80 in the browser to access (the default account password is set in step 4).

6. Version upgrade

You can view the current running Spug version in System Management/System Settings/About, you can view the current latest version in Update Log, if you need to upgrade Spug, please refer to Version Upgrade Document.

Edit this page

标签:compose,80,spug,Installing,MYSQL,Docker,docker
From: https://www.cnblogs.com/gaoyanbing/p/17585281.html

相关文章

  • grafana监控每个docker容器状态
    Grafana监控每个Docker容器状态Docker是一种流行的容器化平台,用于轻松部署和管理应用程序。在一个复杂的Docker环境中,监控每个容器的状态是非常重要的。Grafana是一个功能强大的监控和数据可视化工具,可以帮助我们实现这个目标。本文将介绍如何使用Grafana监控每个Docker容器的状态......
  • [Docker] Docker Images with Docker
    Soit'smucheasiertodowhatwedidwithDocker.Runthiscommand:dockerrun--interactive--ttyalpine:3.10#or,tobeshorter:dockerrun-italpine:3.10Abiteasiertoremember,right?ThiswilldropyouintoaAlpineashshellinsideofa......
  • 使用 QEMU 代替 STM32 开发版本 docker 一键启动
    dockerfile#Compileandinstallqemu_stm32fromfedora:28RUNdnfinstall-y\arm-none-eabi-gcc\arm-none-eabi-newlib\findutils\gcc\git\glib2-devel\libfdt-devel\......
  • Docker不能启动,ERROR: ZONE_CONFLICT: 'docker0' already bound to a zone
    Docker服务意外停止,想要重启Docker服务时,却遇到了 ERROR:ZONE_CONFLICT:'docker0'alreadyboundtoazone的错误,解决方案如下:https://stackoverflow.com/questions/67497455/failed-to-start-docker-daemon-firewalld-docker-zone-already-existsthisworks(doallthes......
  • 通过qemu和docker搭建检查编译环境
    背景在工作中我们经常需要交叉编译一些可执行程序或者动态库,有时要编译的程序过于复杂,如果靠纯的交叉编译,费事又费力,需要解决大量的编译依赖以及报错。解决方案docker+qemu-userqemu-user提供可以运行不同架构的用户态程序的方案,而docker可以帮我们搭建一个运行qemu-user的......
  • grafana 监控docker
    使用Grafana监控Docker在容器化应用的开发和部署中,Docker已经变得非常流行。作为一个容器编排和管理工具,Docker可以极大地简化应用程序的部署和管理过程。然而,随着容器数量的增加,监控容器和了解它们的性能变得越来越重要。Grafana是一个强大的监控工具,可以可视化和分析各种......
  • Dokcer学习之旅(2)——Dockerfile基础应用
    什么是Dockerfile?从dockercommit的学习中,我们可以了解到,镜像的定制实际上就是定制每一层所添加的配置、文件。如果我们可以把每一层修改、安装、构建、操作的命令都写入一个脚本,用这个脚本来构建、定制镜像,那么之前提及的无法重复的问题、镜像构建透明性的问题、体积的问题就......
  • Dockerfile example
    FROMpytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtimeARGDEBIAN_FRONTEND=noninteractiveENVTZ=Asia/Shanghai#RUNrm/etc/apt/sources.list.d/cuda.listRUNapt-getupdate#安装ifconfig命令RUNapt-getinstall-ynet-tools#安装ping命令RUNapt-getinstall-yiputils......
  • docker安装jenkins记录
    docker安装jenkins记录docker拉取jenkins镜像dockerpulljenkinszh/jenkins-zh创建Jenkins挂载目录并授权权限mkdir-p/docker/jenkinschmod777/docker/jenkins创建并启动Jenkins容器dockerrun-d-p10240:8080-p10241:50000-v/docker/jenkins:/var/jenkins......
  • Docker学习路线12:开发者体验
    到目前为止,我们只讨论了使用Docker来部署应用程序。然而,Docker也是一个极好的用于开发应用程序的工具。可以采用一些不同的建议来改善开发体验。在应用程序中使用docker-compose以方便开发。使用绑定挂载将本地代码挂载到容器文件系统中,以避免每次更改都需要重新构建容器映像。......