AutoDevReverseProxy/docker-compose.yml

30 lines
688 B
YAML

version: "3.4"
services:
hostman:
image: julienlecomte/docker-make
command: ["./hostman.sh", "&", "wait", "$!" ]
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/hosts:/config/hosts:rw
- ./script/hostman.sh:/hostman.sh:ro
- ./script/docker-templater.sh:/docker-templater.sh:ro
- ./templates:/templates
- ./config:/config
networks:
- proxy
proxy:
image: caddy:2.6.2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./config/Caddyfile:/etc/caddy/Caddyfile
networks:
- proxy
networks:
proxy:
name: proxy
external: false