Skip to content

Instantly share code, notes, and snippets.

@cjus
Created July 20, 2018 14:02
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 cjus/c8e6fc3e83361844f981b9c1759ca814 to your computer and use it in GitHub Desktop.
Save cjus/c8e6fc3e83361844f981b9c1759ca814 to your computer and use it in GitHub Desktop.
Docker stack running Redis
version: "3.4"
networks:
servicenet:
driver: overlay
ipam:
config:
-
subnet: 10.0.9.0/24
services:
redis:
image: redis:4.0.8-alpine
networks:
- servicenet
ports:
- target: 6379
published: 6379
protocol: tcp
mode: ingress
volumes:
- "~/data/${STACK_NAME}/redis:/data"
deploy:
replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment