Last active
August 10, 2017 17:29
-
-
Save artisticcheese/732b24a2cd2d574a7a9172d5a5ea594a to your computer and use it in GitHub Desktop.
Services
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.2' | |
services: | |
webredirect: | |
image: webopscr.azurecr.io/webredirect:20170727_1258 | |
environment: | |
- "SHELL=powershell.exe" | |
- "HostName={{.Node.ID}}" | |
- "SecretLocation=c:\\programdata\\docker\\secrets\\ProductionCredentials.json" | |
- "ServiceLabels={{.Service.Labels}}" | |
ports: | |
- target: 80 | |
published: 8080 | |
protocol: tcp | |
mode: host | |
volumes: | |
- type: volume | |
source: webredirect | |
target: c:\inetpub\logs\logfiles\host | |
- type: volume | |
source: webredirect-freb | |
target: c:\inetpub\logs\logfiles\freb | |
secrets: | |
- ProductionCredentials.json | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
delay: 5s | |
max_attempts: 3 | |
window: 120s | |
update_config: | |
parallelism: 1 | |
placement: | |
constraints: [node.role != manager] | |
volumes: | |
webredirect: | |
external: true | |
webredirect-freb: | |
external: true | |
secrets: | |
ProductionCredentials.json: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment