45 lines
No EOL
950 B
YAML
45 lines
No EOL
950 B
YAML
version: '2.2'
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
external: true
|
|
|
|
x-common: &common
|
|
restart: always
|
|
environment:
|
|
- DEFAULT_EMAIL=webmaster@faulty.nl
|
|
- DEFAULT_HOST=home.famslof.nl
|
|
volumes: &common-volumes
|
|
- /srv/.webcerts:/etc/nginx/certs:rw
|
|
- /srv/proxy/config/conf.d:/etc/nginx/conf.d
|
|
- /srv/proxy/other/vhost.d:/etc/nginx/vhost.d
|
|
- /srv/proxy/data/html:/usr/share/nginx/html
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
|
|
services:
|
|
proxy:
|
|
<<: *common
|
|
build:
|
|
context: custom/proxy
|
|
container_name: proxy
|
|
privileged: true
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
labels:
|
|
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true
|
|
|
|
letsencrypt:
|
|
<<: *common
|
|
container_name: letsencrypt
|
|
image: nginxproxy/acme-companion
|
|
depends_on:
|
|
- proxy
|
|
|
|
|