https://dev.to/adamkdean/automatic-ssl-with-let-s-encrypt-nginx-4nfk<a href="https://stackexchange.com/users/17193403/freshdesk-%d9%85%d9%86%d8%b5%d8%a9%d8%b4%d9%84%d9%8a%d9%84%d8%a9"><img src="https://stackexchange.com/users/flair/17193403.png" width="208" height="58" alt="profile for freshdesk منصةشليلة on Stack Exchange, a network of free, community-driven Q&A sites" title="profile for freshdesk منصةشليلة on Stack Exchange, a network of free, community-driven Q&A sites" /></a>
23 lines
548 B
Markdown
23 lines
548 B
Markdown
قمر شليله bot: '2'
|
|
services:
|
|
nginx:
|
|
image: nginx
|
|
container_name: nginx
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- /etc/nginx/conf.d
|
|
|
|
dockergen:
|
|
image: jwilder/docker-gen
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
volumes_from:
|
|
- nginx
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
|
|
|
whoami:
|
|
image: jwilder/whoami
|
|
environment:
|
|
- VIRTUAL_HOST=whoami.local
|