Created
July 20, 2018 14:02
-
-
Save cjus/c8e6fc3e83361844f981b9c1759ca814 to your computer and use it in GitHub Desktop.
Docker stack running Redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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