fix: Restart policy for resources

This commit is contained in:
Andras Bacsai
2022-04-12 23:12:09 +02:00
parent 41329facf7
commit 383831c7b8
14 changed files with 161 additions and 17 deletions

View File

@@ -45,7 +45,15 @@ export const post: RequestHandler = async (event) => {
volumes: [volume],
ulimits,
labels,
restart: 'always'
restart: 'always',
deploy: {
restart_policy: {
condition: 'on-failure',
delay: '5s',
max_attempts: 3,
window: '120s'
}
}
}
},
networks: {