🐳 Projet is on Docker Hub
This commit is contained in:
parent
784280aaab
commit
424b1e7fff
14
README.md
14
README.md
|
@ -22,7 +22,7 @@ ce dépôt, il s'agit de l'adresse `https://gitlab.com/animath/si/mkdocs-server-
|
|||
Un exemple :
|
||||
|
||||
```bash
|
||||
docker build -t mkdocs-server . && docker run -it mkdocs-server -e MKDOCS_SERVER_GIT_URL=https://gitlab.com/me/mon-super-projet-mkdocs.git -p 8000:80
|
||||
docker run ynerant/mkdocs-server-from-git -e MKDOCS_SERVER_GIT_URL=https://gitlab.com/me/mon-super-projet-mkdocs.git -p 8000:80
|
||||
```
|
||||
|
||||
Le résultat s'observe sur `http://localhost:8000`.
|
||||
|
@ -31,18 +31,18 @@ Il est recommandé d'utiliser `docker-compose` :
|
|||
|
||||
```yaml
|
||||
mkdocs-server:
|
||||
build: /chemin/vers/mkdocs-server-from-git
|
||||
ports:
|
||||
- 8000:80
|
||||
environment:
|
||||
- MKDOCS_SERVER_GIT_URL=https://gitlab.com/me/mon-super-projet.git
|
||||
image: ynerant/mkdocs-server-from-git
|
||||
ports:
|
||||
- 8000:80
|
||||
environment:
|
||||
- MKDOCS_SERVER_GIT_URL=https://gitlab.com/me/mon-super-projet.git
|
||||
```
|
||||
|
||||
Si vous utilisez Traefik comme reverse-proxy :
|
||||
|
||||
```yaml
|
||||
mkdocs-server:
|
||||
build: /chemin/vers/mkdocs-server-from-git
|
||||
image: ynerant/mkdocs-server-from-git
|
||||
restart: always
|
||||
environment:
|
||||
- MKDOCS_SERVER_GIT_URL=https://gitlab.com/me/mon-super-projet.git
|
||||
|
|
Loading…
Reference in New Issue