mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-01 19:57:34 +08:00
Update docker doc
This commit is contained in:
parent
8f4ae77de8
commit
1e1f5f883b
@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
### Added
|
||||
- add process exec time
|
||||
- add manage repository
|
||||
- add docker env
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -4,8 +4,6 @@ LABEL maintainer="zhenorzz@gmail.com"
|
||||
ARG GOPLOY_VER=v1.16.1
|
||||
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/community/" >> /etc/apk/repositories
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<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 align="center">
|
||||
@ -26,19 +26,20 @@ Complete installation instructions, no difficulty in getting started!
|
||||
|
||||
# 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:
|
||||
|
||||
```console
|
||||
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/hosts:/etc/hosts \
|
||||
-v /path/to/repository:/opt/goploy/repository \
|
||||
zhenorzz/goploy
|
||||
-p 3000:80 \
|
||||
zhenorzz/goploy[:tag]
|
||||
```
|
||||
|
||||
That's it.
|
||||
|
Loading…
Reference in New Issue
Block a user