Skip to content

Instantly share code, notes, and snippets.

@boedy
Last active January 4, 2016 23:07
Show Gist options
  • Save boedy/0b6025a9483be052f33d to your computer and use it in GitHub Desktop.
Save boedy/0b6025a9483be052f33d to your computer and use it in GitHub Desktop.
nginx:
image: quay.io/kollekt/instore-nginx
ports:
- "8080:80"
volumes_from:
- app-data
links:
- mysql
- memcached
- beanstalkd
labels:
io.rancher.sidekicks: php, app-data
io.rancher.scheduler.affinity:host_label: web=true
php:
image : quay.io/kollekt/instore-php
labels:
io.rancher.scheduler.affinity:host_label: web=true
volumes_from:
- app-data
net: "container:nginx"
app-data:
image: quay.io/kollekt/instore-data
labels:
io.rancher.container.start_once: "true"
memcached:
image: memcached:latest
beanstalkd:
image: schickling/beanstalkd
mysql:
image: mysql:5.6
@cloudnautique
Copy link

nginx:
    image: quay.io/kollekt/instore-nginx
    ports:
        - "8080:80"
    volumes_from:
        - app-data
    links:
        - mysql
    labels:
        io.rancher.sidekicks: php, app-data
        io.rancher.scheduler.affinity:host_label: web=true
php:
    image : quay.io/kollekt/instore-php
    net: "container:nginx"
    labels:
        io.rancher.scheduler.affinity:host_label: web=true
    volumes_from:
        - app-data

app-data:
    image: quay.io/kollekt/instore-data
    labels:
        io.rancher.container.start_once: "true"
mysql:
    image: mysql:5.6
memcached:
    image: memcached:latest
beanstalkd:
    image: schickling/beanstalkd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment