Skip to content

Instantly share code, notes, and snippets.

@artisticcheese
Last active August 10, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artisticcheese/732b24a2cd2d574a7a9172d5a5ea594a to your computer and use it in GitHub Desktop.
Save artisticcheese/732b24a2cd2d574a7a9172d5a5ea594a to your computer and use it in GitHub Desktop.
Services
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