Skip to content

Latest commit

 

History

History
118 lines (80 loc) · 5.41 KB

README.md

File metadata and controls

118 lines (80 loc) · 5.41 KB
img

English / 中文

Quick Start / Documents / Videos

What is sparrow and why should we use sparrow?

A Docker tool for one-click startup of multiple services.

GitHub release (latest by date)

1. Support services

Add a new service, please click here.

image

2. Quick start

Here is a quick usage example. You can check Usage Document for detailed tutorials.

demo.mp4

(1) Installation

You can use the following commands to install.

# get project
git clone https://github.com/WGrape/sparrow.git
cd sparrow

# install
bash _install.sh

After successful installation, a .env file will be automatically generated in the project's root directory, it's the config entry for Sparrow, you can modify service versions, container namespace, and more. Refer to the .env.template file.

1、If you encounter some syntax errors while using the ./sparrow xxx command, please try to run with bash bash ./sparrow xxx command.

2、When install, you will be prompted to enter DOCKERHUB_REPO, which is used to configure the remote repository for your Sparrow images. It's default value is docker.io/lvsid, if you need to modify it later, you can directly edit the .env file.

3、If you need help, check the Q&A Document for more help.

(2) Start

Use the following command to start all services in the entire environment. Of course, this all services can be defined and is controlled by the ENABLE_SERVICE_LIST array variable configured in the /.env file in the root directory.

./sparrow start

If you only need to start a specific service, you can use the following command. The service passed in is the name of a service in the services list in the docker-compose.yml configuration file, such as phpfpm/nginx/mysql/redis, etc.

./sparrow startone {service_name}

(3) Stop

Stop all services in the entire environment

./sparrow stop

The same, if you only need to stop a specific service, you can use the following command.

./sparrow stopone {service_name}

(4) Restart

Restart all services in the entire environment

./sparrow restart

(5) Update a Service

When a service needs to be updated, such as when its image content needs to be modified, the service (image) needs to be updated after making the modifications. After modifying it manually, use the following command to update it.

./sparrow updateone {service_name}

3. More documents

4. Contributions

During the use of the project, if you have any questions or suggestions, please submit issues or pull requests any time. About Contribution,please check How to Contribute document.

5. License

MIT, Copyright (c) 2013-present, Wgrape