Update docker doc

This commit is contained in:
zhenorzz 2024-01-10 11:37:07 +08:00
parent 8f4ae77de8
commit 1e1f5f883b
3 changed files with 9 additions and 9 deletions

View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
### Added ### Added
- add process exec time - add process exec time
- add manage repository - add manage repository
- add docker env
### Changed ### Changed

View File

@ -4,8 +4,6 @@ LABEL maintainer="zhenorzz@gmail.com"
ARG GOPLOY_VER=v1.16.1 ARG GOPLOY_VER=v1.16.1
ENV GOPLOY_VER=${GOPLOY_VER} ENV GOPLOY_VER=${GOPLOY_VER}
ENV MYSQL_PORT=3306
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories

View File

@ -1,5 +1,5 @@
<p align=center> <p align=center>
<img src="https://raw.githubusercontent.com/zhenorzz/goploy/master/banner.png" alt="logo" title="logo" /> <img src="https://raw.githubusercontent.com/zhenorzz/goploy/master/logo.png" alt="logo" title="logo" />
</p> </p>
<p align="center"> <p align="center">
@ -26,19 +26,20 @@ Complete installation instructions, no difficulty in getting started!
# How to use? # How to use?
Import sql file: [goploy.sql](https://github.com/zhenorzz/goploy/blob/master/model/sql/goploy.sql)
Setup configuration file: cp [goploy.example.toml](https://github.com/zhenorzz/goploy/blob/master/goploy.example.toml) /path/to/repository/goploy.toml
Run it with all needed parameter: Run it with all needed parameter:
```console ```console
docker run -it \ docker run -it \
-p 3000:80 \ --name=goploy \
--env=DB_HOST=mysql \
--env=DB_USER=root \
--env=DB_USER_PASSWORD=YourPasswordHere \
--env=DB_NAME=goploy \
-v /path/to/.ssh:/root/.ssh \ -v /path/to/.ssh:/root/.ssh \
-v /path/to/hosts:/etc/hosts \ -v /path/to/hosts:/etc/hosts \
-v /path/to/repository:/opt/goploy/repository \ -v /path/to/repository:/opt/goploy/repository \
zhenorzz/goploy -p 3000:80 \
zhenorzz/goploy[:tag]
``` ```
That's it. That's it.