adding the coder stack file

This commit is contained in:
2022-10-31 14:41:19 +09:00
parent bc18455259
commit 51fc36eea3
2 changed files with 39 additions and 6 deletions

View File

@ -17,6 +17,7 @@ services:
- DS_SERVICE_NAME={{.Service.Name}}
- DS_TASK_NAME={{.Task.Name}}
volumes:
# direct binding is ok for the constraints 'node.role == manager' below
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
@ -44,7 +45,8 @@ services:
deploy:
mode: global
placement:
constraints: [node.role == manager]
constraints:
- node.role == manager
command:
- --log.level=INFO
- --accessLog