56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
services:
|
|
dnsmasq:
|
|
image: jpillora/dnsmasq
|
|
container_name: dnsmasq
|
|
restart: always
|
|
ports:
|
|
- "53:53/udp"
|
|
- "53:53/tcp"
|
|
volumes:
|
|
- ./dnsmasq.conf:/etc/dnsmasq.conf:ro
|
|
cap_add:
|
|
- NET_ADMIN
|
|
networks:
|
|
- devnet
|
|
|
|
nginx-proxy:
|
|
image: nginxproxy/nginx-proxy:alpine
|
|
container_name: nginx-proxy
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./certs:/etc/nginx/certs:ro
|
|
- ./vhost.d:/etc/nginx/vhost.d:ro
|
|
- ./html:/usr/share/nginx/html:rw
|
|
networks:
|
|
- devnet
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx"
|
|
|
|
nginx-proxy-companion:
|
|
image: nginxproxy/acme-companion
|
|
container_name: nginx-proxy-companion
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./certs:/etc/nginx/certs:rw
|
|
- ./acme:/etc/acme.sh
|
|
- ./vhost.d:/etc/nginx/vhost.d
|
|
- ./html:/usr/share/nginx/html
|
|
networks:
|
|
- devnet
|
|
environment:
|
|
- NGINX_PROXY_CONTAINER=nginx-proxy
|
|
|
|
networks:
|
|
devnet:
|
|
external: true
|
|
|
|
volumes:
|
|
acme:
|
|
vhost.d:
|
|
html:
|