informatique:docker
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
informatique:docker [11/09/2021 17:49] – [nginx-proxy] nginx-proxy/acme-companion cyrille | informatique:docker [12/09/2021 14:01] – [nginx-proxy/acme-companion] cyrille | ||
---|---|---|---|
Ligne 211: | Ligne 211: | ||
==== nginx-proxy ==== | ==== nginx-proxy ==== | ||
- | * https://hub.docker.com/r/ | + | * https://github.com/nginx-proxy/ |
- | * https:// | + | * https:// |
- | Le container [[https:// | + | C'est le reverse proxy pour d' |
- | ==== nginx-proxy/ | + | {{ https:// |
- | https:// | + | Les 2 dans un docker-compose et le tour est joué: |
+ | <code yaml> | ||
+ | volumes: | ||
+ | conf: | ||
+ | vhost: | ||
+ | html: | ||
+ | dhparam: | ||
+ | certs: | ||
+ | | ||
- | acme-companion | + | services: |
+ | nginx-proxy: | ||
+ | image: nginxproxy/ | ||
+ | container_name: | ||
+ | ports: | ||
+ | - " | ||
+ | - " | ||
+ | volumes: | ||
+ | - conf:/ | ||
+ | - vhost:/ | ||
+ | - html:/ | ||
+ | - dhparam:/ | ||
+ | - certs:/ | ||
+ | - / | ||
+ | network_mode: | ||
+ | | ||
+ | image: nginxproxy/ | ||
+ | container_name: | ||
+ | volumes_from: | ||
+ | - nginx-proxy | ||
+ | volumes: | ||
+ | - certs:/ | ||
+ | - acme:/ | ||
+ | - / | ||
+ | network_mode: | ||
+ | </ | ||
+ | |||
+ | Il suffit ensuite de lancer des containers | ||
+ | <code bash> | ||
+ | docker run -d -p 8000:8000 --name dokuwiki -v $(pwd)/ | ||
+ | --env " | ||
+ | --env " | ||
+ | --env " | ||
+ | --env " | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Et voilà le container '' | ||
- | * Automated creation/ | ||
- | * Let's Encrypt / ACME domain validation through http-01 challenge only. | ||
- | * Automated update and reload of nginx config on certificate creation/ | ||
- | * Support creation of Multi-Domain (SAN) Certificates. | ||
- | * Creation of a Strong Diffie-Hellman Group at startup. | ||
- | * Work with all versions of docker. | ||
==== webdevops ==== | ==== webdevops ==== |
informatique/docker.txt · Dernière modification : 24/11/2023 20:44 de cyrille