Skip to content

Commit

Permalink
Added support for persistent storage (through commented volumes decla…
Browse files Browse the repository at this point in the history
…ration) in the docker platform deployment files
  • Loading branch information
Massimo Re Ferre committed Aug 9, 2017
1 parent da9c327 commit 56ce32e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion deployments/platformdeployment/Docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ services:
image: redis
networks:
- yelb-network
# uncomment the following lines if you want to persist redis data across deployments
#volumes:
# - data:/data

networks:
yelb-network:
driver: bridge # a user defined bridge is required; the default bridge network doesn't support name resolution
driver: bridge # a user defined bridge is required; the default bridge network doesn't support name resolution

# uncomment the following lines if you want to persist redis data across deployments
#volumes:
# data:
# driver: local # you can pick another driver depending on the platform you are deploying onto
10 changes: 9 additions & 1 deletion deployments/platformdeployment/Docker/stack-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,19 @@ services:
image: redis
networks:
- yelb-network
# uncomment the following lines if you want to persist redis data across deployments
#volumes:
# - data:/data
deploy:
replicas: 1
restart_policy:
condition: on-failure

networks:
yelb-network:
driver: overlay # a user defined bridge is required; the default bridge network doesn't support name resolution
driver: overlay # a user defined bridge is required; the default bridge network doesn't support name resolution

# uncomment the following lines if you want to persist redis data across deployments
#volumes:
# data:
# driver: local # you can pick another driver depending on the platform you are deploying onto

0 comments on commit 56ce32e

Please sign in to comment.