Skip to content

Instantly share code, notes, and snippets.

@nicolaka
Created February 16, 2016 06:55
Show Gist options
  • Save nicolaka/eb7905b02f3487739284 to your computer and use it in GitHub Desktop.
Save nicolaka/eb7905b02f3487739284 to your computer and use it in GitHub Desktop.
HAProxy+Interlock Compose File
version : "2"
services:
interlock:
image: ehazlett/interlock:ng
command: -D run --discovery etcd://$CONTROLLER_IP:12379 --discovery-tls-ca-cert /kvcerts/ca.pem --discovery-tls-cert /kvcerts/cert.pem --discovery-tls-key /kvcerts/key.pem
volumes:
- ucp-swarm-node-certs:/certs
- ucp-swarm-node-certs:/kvcerts
- haproxy:/usr/local/etc/haproxy
haproxy:
image: haproxy
ports:
- 80:80
- 443:443
labels:
- "interlock.ext.name=haproxy"
volumes:
- haproxy:/usr/local/etc/haproxy
links:
- interlock
volumes:
haproxy:
ucp-swarm-node-certs:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment