Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created August 31, 2016 19:22
Show Gist options
  • Save andyshinn/48208aeffb023daf45ad72a5c3ba7927 to your computer and use it in GitHub Desktop.
Save andyshinn/48208aeffb023daf45ad72a5c3ba7927 to your computer and use it in GitHub Desktop.
Cachet Rancher
nginx:
labels:
io.rancher.container.pull_image: always
image: nginx:1.9-alpine
links:
- 'cachet:'
volumes:
- cachetnginx:/etc/nginx/conf.d
- cachetwww:/var/www
volume_driver: convoy
cachet:
environment:
DB_DRIVER: pgsql
DB_HOST: postgres
DB_DATABASE: postgres
DB_USERNAME: postgres
DB_PASSWORD: uptheyinyang
labels:
io.rancher.container.pull_image: always
image: cachethq/docker:2.3.7
links:
- 'postgres:'
volumes:
- cachetwww:/var/www
volume_driver: convoy
lb:
ports:
- 8094:8000
labels:
io.rancher.loadbalancer.ssl.ports: '8094'
io.rancher.scheduler.affinity:host_label: service=lb
tty: true
image: rancher/load-balancer-service
links:
- nginx:nginx
stdin_open: true
postgres:
environment:
POSTGRES_PASSWORD: uptheyingyang
labels:
io.rancher.container.pull_image: always
image: postgres:9.4
volumes:
- cachetpgsql:/var/lib/postgresql/data
volume_driver: convoy
nginx:
scale: 1
cachet:
scale: 1
lb:
scale: 1
load_balancer_config:
haproxy_config: {}
default_cert: natera-wildcard
health_check:
port: 42
interval: 2000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000
postgres:
scale: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment