mirror of https://gitee.com/answerdev/answer.git
Merge branch 'doc/docker' into 'main'
doc: update docker hub image url See merge request opensource/answer!75
This commit is contained in:
commit
67dd06f7f6
|
@ -18,7 +18,7 @@ To keep your data out of Docker container, we do a volume (/var/data -> /data) h
|
|||
|
||||
```
|
||||
# Pull image from Docker Hub.
|
||||
$ docker pull answer/answer
|
||||
$ docker pull answerdev/answer:latest
|
||||
|
||||
# Create local directory for volume.
|
||||
$ mkdir -p /var/data
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
```
|
||||
# 将镜像从 docker hub 拉到本地
|
||||
$ docker pull answer/answer
|
||||
$ docker pull answerdev/answer:latest
|
||||
|
||||
# 创建一个挂载目录
|
||||
$ mkdir -p /var/data
|
||||
|
|
|
@ -22,7 +22,7 @@ To learn more about the project, visit [answer.dev](https://answer.dev).
|
|||
|
||||
```bash
|
||||
mkdir answer && cd answer
|
||||
wget https://github.com/segmentfault/answer/releases/latest/download/docker-compose.yaml
|
||||
wget https://github.com/answerdev/answer/blob/main/docker-compose.yaml
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
```bash
|
||||
mkdir answer && cd answer
|
||||
wget https://github.com/segmentfault/answer/releases/latest/download/docker-compose.yaml
|
||||
wget https://github.com/answerdev/answer/blob/main/docker-compose.yaml
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
|
@ -36,4 +36,4 @@ docker-compose up
|
|||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/segmentfault/answer/blob/master/LICENSE)
|
||||
[Apache](https://github.com/answerdev/answer/blob/main/LICENSE)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
answer:
|
||||
image: github.com/segmentfault/answer
|
||||
image: answerdev/answer:latest
|
||||
ports:
|
||||
- '9080:80'
|
||||
restart: on-failure
|
||||
|
|
Loading…
Reference in New Issue