Created
July 25, 2017 09:44
-
-
Save omerh/ba5e0524164794e67c980f2df8a856cd to your computer and use it in GitHub Desktop.
basic stack compose yml
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" | |
services: | |
webserver: | |
image: minervaprime/demo-webserver:v1 | |
ports: | |
- "80:80" | |
deploy: | |
replicas: 2 | |
restart_policy: | |
condition: none | |
update_config: | |
parallelism: 1 | |
failure_action: rollback | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:9000/"] | |
interval: 30s | |
timeout: 5s | |
retries: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment