goploy/docker
2021-06-01 14:59:54 +08:00
..
Dockerfile A docker 2021-06-01 12:53:58 +08:00
README.md A docker support 2021-06-01 14:59:54 +08:00

logo

README STAR LICENSE

Name: go + deploy

A web deployment system tool!

Support all kinds of code release and rollback, which can be done through the web with one click!

Complete installation instructions, no difficulty in getting started!

How to use?

run it with all needed parameter:

docker run --rm \
    -p 3000:80 \
    -v /path/to/.ssh:/root/.ssh \
    -v /path/to/hosts:/etc/hosts \
    -e MYSQL_HOST=mysql \
    -e MYSQL_USER=root \
    -e MYSQL_PASSWORD=password \
    zhenorzz/goploy

That's it.

Environment variables

This image uses environment variables for configuration.

Available variables Default value Description
MYSQL_HOST no default MYSQL HOST
MYSQL_PORT 3306 MYSQL PORT
MYSQL_USER no default MYSQL USER
MYSQL_PASSWORD no default MYSQL PASSWORD

Mount

The rsync and ssh need id_rsa to conncet server, so you have to mount your ssh path to container using -v /path/to/.ssh:/root/.ssh.

If you want to access your own domain in container, you should mount your hosts file to container using -v /path/to/hosts:/etc/hosts.

If you would like to keep the repositories you can use -v /path/to/repository:/opt/goploy/repository.

Notice that the filename is case sensitive. If your readme is called readme.md you have to mount the file directly, not the directory

Additional Information

Windows id_rsa permission denied, click this for help.

Updates and updating

To update your setup simply pull the newest image version from docker hub and run it.

License

View license information for the software contained in this image.

Everything in this repository is published under MIT.

User Feedback

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; I'm always thrilled to receive pull requests.