Skip to content

Instantly share code, notes, and snippets.

@cjus
Created July 18, 2018 17:04
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/123afaf561631c54fe0010f79ca862c1 to your computer and use it in GitHub Desktop.
Save cjus/123afaf561631c54fe0010f79ca862c1 to your computer and use it in GitHub Desktop.
Sample stack compose
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/test/redis:/data"
deploy:
replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment