31 lines
762 B
YAML
31 lines
762 B
YAML
services:
|
|
reverseproxy:
|
|
image: jwilder/nginx-proxy:latest
|
|
container_name: reverseproxy
|
|
restart: unless-stopped
|
|
environment:
|
|
DEFAULT_HOST: default.vhost
|
|
ENABLE_IPV6: "true"
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./zertifikate:/etc/nginx/certs:ro
|
|
- ./vhost.d:/etc/nginx/vhost.d
|
|
- ./html:/usr/share/nginx/html
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
networks:
|
|
- reverseproxy_netz
|
|
|
|
letsencrypt-nginx-proxy-companion:
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
volumes:
|
|
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
|
- './zertifikate:/etc/nginx/certs:rw'
|
|
volumes_from:
|
|
- reverseproxy
|
|
|
|
|
|
networks:
|
|
reverseproxy_netz:
|
|
external: true
|