-
Notifications
You must be signed in to change notification settings - Fork 2
/
kontena.yml
60 lines (58 loc) · 1.24 KB
/
kontena.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
stack: jussi/slackbot
version: 0.0.2
description: Slack bot to manage Kontena grid
variables:
slack_token:
type: string
from:
vault: ${STACK}-SLACK_TOKEN
prompt: Slack token
to:
vault: ${STACK}-SLACK_TOKEN
kontena_token:
type: string
from:
vault: ${STACK}-KONTENA_TOKEN
prompt: Kontena token
to:
vault: ${STACK}-KONTENA_TOKEN
grid:
type: string
from:
prompt: Grid to manage
master:
type: string
from:
prompt: Master URI
ignore_ssl:
type: boolean
default: false
from:
prompt: Ignore SSL errors (set to true for self signed master cert)
name:
type: string
from:
prompt: Name of the bot
allowed_users:
type: string
default: ""
from:
prompt: Allowed users (comma separated)
services:
bot:
build:
context: .
image: jnummelin/kontena-slack-bot:latest
environment:
- KONTENA_URL=${master}
- KONTENA_GRID=${grid}
- SSL_IGNORE_ERRORS=${ignore_ssl}
- BOT_NAME=${name}
- ALLOWED_USERS=${allowed_users}
secrets:
- secret: ${STACK}-SLACK_TOKEN
name: SLACK_TOKEN
type: env
- secret: ${STACK}-KONTENA_TOKEN
name: KONTENA_TOKEN
type: env