Created
April 22, 2017 17:41
-
-
Save msfidelis/08408f8fd96a82d847edede443edebd6 to your computer and use it in GitHub Desktop.
Docker-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: | |
api: | |
image: msfidelis/example-api | |
ports: | |
- "80:80" | |
#Configs de Deploy do Service | |
deploy: | |
# Quantos containers vão ser stardados no Deploy | |
replicas: 4 | |
# Parâmetros de Deploy | |
update_config: | |
#O Deploy será feito de 2 em 2 containers em paralelo | |
parallelism: 2 | |
#O delay de entrega das imagens | |
delay: 5s | |
#Politica de Restart | |
restart_policy: | |
# Os containers irão restartar em caso de falha | |
condition: on-failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment