Skip to content
docker-compose.yml 961 B
Newer Older
Pierre Ozoux's avatar
Pierre Ozoux committed
version: '2'

networks:
Pierre Ozoux's avatar
Pierre Ozoux committed
  lb_web:
    external: true
Pierre Ozoux's avatar
Pierre Ozoux committed

services:
  discovery:
    image: jwilder/docker-gen
    volumes:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "/var/run/docker.sock:/tmp/docker.sock:ro"
    - "./templates:/etc/docker-gen/templates"
    - "./haproxy:/etc/haproxy"
Pierre Ozoux's avatar
Pierre Ozoux committed
    command: "-watch /etc/docker-gen/templates/haproxy.cfg.tmpl /etc/haproxy/haproxy.cfg"
  haproxy:
    image: indiehosters/haproxy
    volumes:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "./haproxy:/etc/haproxy"
    - "/dev/log:/dev/log"
Pierre Ozoux's avatar
Pierre Ozoux committed
    links:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - letsencrypt
Pierre Ozoux's avatar
Pierre Ozoux committed
    ports:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "80:80"
    - "443:443"
Pierre Ozoux's avatar
Pierre Ozoux committed
    networks:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - lb_web
Pierre Ozoux's avatar
Pierre Ozoux committed
  letsencrypt-web:
    image: nginx
    volumes:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "./acme-challenge:/usr/share/nginx/html/.well-known/acme-challenge:ro"
Pierre Ozoux's avatar
Pierre Ozoux committed
    networks:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - lb_web
Pierre Ozoux's avatar
Pierre Ozoux committed
  letsencrypt:
    image: libresh/letsencrypt
Pierre Ozoux's avatar
Pierre Ozoux committed
    volumes:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "./haproxy:/etc/haproxy"
    - "./acme-challenge:/html-root/.well-known/acme-challenge/"
    - "./certs:/var/certs"
Pierre Ozoux's avatar
Pierre Ozoux committed
  ocsp:
    image: indiehosters/ocsp
    volumes:
Pierre Ozoux's avatar
Pierre Ozoux committed
    - "./haproxy:/etc/haproxy"