Skip to content

Instantly share code, notes, and snippets.

@jasonpincin
Last active March 6, 2017 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonpincin/8b2a534b722408db33b323b9a68957dc to your computer and use it in GitHub Desktop.
Save jasonpincin/8b2a534b722408db33b323b9a68957dc to your computer and use it in GitHub Desktop.
example autopilotpattern/redis docker-compose config for Triton deployment
version: '2.1'
services:
redis:
image: autopilotpattern/redis:3.2.8-r1.0.0
mem_limit: 4g
restart: always
expose:
- 6379
- 26379
environment:
- affinity:com.docker.compose.service!=~redis
env_file: _env
labels:
- triton.cns.services=redis
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
labels:
- triton.cns.services=redis-consul
network_mode: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment