goploy/docker/README.md

77 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2021-06-01 12:53:58 +08:00
<p align=center>
2024-01-10 11:37:07 +08:00
<img src="https://raw.githubusercontent.com/zhenorzz/goploy/master/logo.png" alt="logo" title="logo" />
2021-06-01 12:53:58 +08:00
</p>
<p align="center">
<a href="#">
<img src="https://img.shields.io/badge/readme%20style-standard-brightgreen.svg" alt="README">
</a>
<a href="#">
<img src="https://img.shields.io/badge/give%20me-a%20star-green.svg" alt="STAR">
2021-06-01 14:59:54 +08:00
</a>
2021-06-01 12:53:58 +08:00
<a href="../LICENSE">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="LICENSE">
</a>
</p>
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!
2021-11-23 10:16:18 +08:00
[Dockerfile](https://github.com/zhenorzz/goploy/blob/master/docker/Dockerfile)
2021-06-01 12:53:58 +08:00
# How to use?
2021-11-23 10:16:18 +08:00
Run it with all needed parameter:
2021-06-01 12:53:58 +08:00
```console
2021-12-15 16:17:31 +08:00
docker run -it \
2024-01-10 11:37:07 +08:00
--name=goploy \
--env=DB_HOST=mysql \
--env=DB_USER=root \
--env=DB_USER_PASSWORD=YourPasswordHere \
--env=DB_NAME=goploy \
2021-06-01 14:59:54 +08:00
-v /path/to/.ssh:/root/.ssh \
-v /path/to/hosts:/etc/hosts \
2021-12-15 16:17:31 +08:00
-v /path/to/repository:/opt/goploy/repository \
2024-01-10 11:37:07 +08:00
-p 3000:80 \
zhenorzz/goploy[:tag]
2021-06-01 12:53:58 +08:00
```
That's it.
2021-06-01 14:59:54 +08:00
## Mount
2021-06-01 12:53:58 +08:00
2022-08-17 09:22:10 +08:00
The rsync and ssh need id_rsa to connect server, so you have to mount your ssh path to container using `-v /path/to/.ssh:/root/.ssh`.
2021-06-01 12:53:58 +08:00
2021-06-01 14:59:54 +08:00
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`.
2021-06-01 12:53:58 +08:00
2021-12-15 16:17:31 +08:00
*Notice that the filename is case-sensitive. If your readme is called `readme.md` you have to mount the file directly, not the directory*
2021-06-01 12:53:58 +08:00
# Additional Information
2021-06-01 14:59:54 +08:00
[Windows id_rsa permission denied, click this for help.](https://stackoverflow.com/questions/9270734/ssh-permissions-are-too-open-error)
2021-06-01 12:53:58 +08:00
# Updates and updating
To update your setup simply pull the newest image version from docker hub and run it.
# License
2021-06-01 14:59:54 +08:00
View [license information](https://github.com/zhenorzz/goploy/blob/master/LICENSE) for the software contained in this image.
2021-06-01 12:53:58 +08:00
2022-08-17 09:22:10 +08:00
Everything in [this repository](https://github.com/zhenorzz/goploy) is published under GPLv3.
2021-06-01 12:53:58 +08:00
# User Feedback
## Issues
2021-06-01 14:59:54 +08:00
If you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/zhenorzz/goploy/issues).
2021-06-01 12:53:58 +08:00
## Contributing
You are invited to contribute new features, fixes, or updates, large or small; I'm always thrilled to receive pull requests.