23 lines
453 B
YAML
23 lines
453 B
YAML
version: '2'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
image: jwilder/nginx-proxy
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- /etc/nginx/certs
|
|
- /etc/nginx/vhost.d
|
|
- /usr/share/nginx/html
|
|
|
|
letsencrypt:
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
restart: always
|
|
volumes_from:
|
|
- nginx
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro |