Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx:
- image: nginx:latest
- publish_all: true
- mem_min: 50m
- host: host1
- plugins:
- - !plugin
- id: 0H1Nk
- restart: true
- lifecycle: on_create, post_scale_out:ruby, post_scale_in:ruby
- arguments:
- # Use container_private_ip if you're using Docker networking
- - servers=server {{ruby | container_private_ip}}:3000;
- # Use container_hostname if you're using Weave networking
- #- servers=server {{ruby | container_hostname}}:3000;
- ruby:
- image: dchq/docker-rails:latest
- mem_min: 700m
- publish_all: false
- host: host1
- command: bin/rails server --port 3000 --binding 0.0.0.0
- plugins:
- - !plugin
- id: wbIQn
- restart: true
- environment:
- - POSTGRES_IP={{postgres|container_hostname}}
- - POSTGRES_USER={{postgres|POSTGRES_USER}}
- - POSTGRES_PASSWORD={{postgres|POSTGRES_PASSWORD}}
- - POSTGRES_DB={{postgres|POSTGRES_DB}}
- - REDIS_IP={{redis|container_private_ip}}
- redis:
- image: redis:latest
- mem_min: 200m
- host: host1
- memcache:
- image: memcached:latest
- mem_min: 200m
- host: host1
- postgres:
- image: postgres:latest
- mem_min: 400m
- host: host1
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=starterkit_dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement