Skip to content

zhaopan/docker-devops

Repository files navigation

docker 常规脚手架

init

# copy 配置文件,根据自己需求修改配置文件
cp .env.example .env
chmod +x init.sh
sh init.sh

# 若需要安装frp,则要执行 frp/install.sh
cd frp
chmod +x install.sh
sh install.sh

services-names

# nginx 1.14
# redis 4.x | 5.x(默认) | 6.x
# mysql 5.7.40(默认) | 8.0
# frps 0.58.1
# frpc 0.58.1

build

# build
docker-compose build <services-names>

docker-compose build | up | stop | down

# start 首次执行耗时较久,耐心等待
docker-compose up -d <services-names>

# restart 修改配置文件后重启即可
docker-compose restart <services-names>

# rebuild 修改 dockerfile 或者 env 文件之后 rebuild 可生效
docker-compose up -d --build <services-names>

# stop 停止
docker-compose stop

# down 停止 + 删除
docker-compose down

# down -rmi 停止 + 删除容器 + 删除镜像
docker-compose down --rmi all

make build | up | stop | down

Install make

# build
make build

# up
make up

# stop
make stop

# down
make down

thanks

ogenes/docker-lnmp

fatedier/frp

snowdreamtech/frp

Releases

No releases published

Sponsor this project

Packages

No packages published