Skip to content

Instantly share code, notes, and snippets.

@jasonpincin
Created March 6, 2017 19:33
Show Gist options
  • Save jasonpincin/4569d1c222ac565a022e6bbf3941772a to your computer and use it in GitHub Desktop.
Save jasonpincin/4569d1c222ac565a022e6bbf3941772a to your computer and use it in GitHub Desktop.
example autopilotpattern/redis docker-compose config for local deployment
version: '2.1'
services:
redis:
image: autopilotpattern/redis:3.2.8-r1.0.0
mem_limit: 512m
restart: always
expose:
- 6379
- 26379
environment:
- CONSUL=consul
links:
- consul:consul
ports:
- 6379
- 26379
expose:
- 6379
- 26379
network_mode: bridge
consul:
image: autopilotpattern/consul:0.7.2-r0.8
command: >
/usr/local/bin/containerpilot
/bin/consul agent -server
-bootstrap-expect 1
-config-dir=/etc/consul
-ui-dir /ui
restart: always
mem_limit: 128m
ports:
- 8500
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
network_mode: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment