Skip to content
docker-compose.yml 812 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
discovery:
  image: jwilder/docker-gen
  volumes:
    - "/var/run/docker.sock:/tmp/docker.sock:ro"
    - "./templates:/etc/docker-gen/templates"
    - "./haproxy:/etc/haproxy"
  command: "-watch /etc/docker-gen/templates/haproxy.cfg.tmpl /etc/haproxy/haproxy.cfg"
haproxy:
  image: indiehosters/haproxy
  volumes:
    - "./haproxy:/etc/haproxy"
    - "/dev/log:/dev/log"
  links:
    - letsencrypt
  ports:
    - "80:80"
    - "443:443"
Pierre Ozoux's avatar
Pierre Ozoux committed
letsencrypt-web:
Pierre Ozoux's avatar
Pierre Ozoux committed
  image: nginx
  volumes:
    - "./acme-challenge:/usr/share/nginx/html/.well-known/acme-challenge:ro"
Pierre Ozoux's avatar
Pierre Ozoux committed
letsencrypt:
Pierre Ozoux's avatar
Pierre Ozoux committed
  image: indiehosters/letsencrypt
  volumes:
    - "./haproxy:/etc/haproxy"
    - "./acme-challenge:/html-root/.well-known/acme-challenge/"
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "./certs:/var/certs"
Pierre Ozoux's avatar
Pierre Ozoux committed
ocsp:
  image: indiehosters/ocsp
  volumes:
    - "./haproxy:/etc/haproxy"