-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-swarmstack.yml
61 lines (56 loc) · 1.92 KB
/
docker-compose-swarmstack.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
61
version: "3.3"
networks:
default:
external:
name: swarmstack_net
volumes:
errbot-data:
driver: pxd
driver_opts:
repl: 2
size: 2
configs:
errbot_config:
file: ./config.py
# These are already available in swarmstack/errbot-docker/ and are examples
# errbot_alerrtmanagerr-webex_plug:
# file: ./local_plugins/alerrtmanagerr-webex/alerrtmanagerr.plug
# errbot_alerrtmanagerr-webex_py:
# file: ./local_plugins/alerrtmanagerr-webex/alerrtmanagerr.py
#
# errbot_err-backend-cisco-webex-teams_plug:
# file: ./local_backends/err-backend-cisco-webex-teams/CiscoWebexTeams.plug
# errbot_err-backend-cisco-webex-teams_py:
# file: ./local_backends/err-backend-cisco-webex-teams/CiscoWebexTeams.py
services:
errbot:
image: swarmstack/errbot-docker:latest
configs:
- source: errbot_config
target: /err/config.py
# These are already available in swarmstack/errbot-docker/ and are examples
# - source: errbot_alerrtmanagerr-webex_plug
# target: /err/local_plugins/alerrtmanagerr-webex/alerrtmanagerr.plug
# - source: errbot_alerrtmanagerr-webex_py
# target: /err/local_plugins/alerrtmanagerr-webex/alerrtmanagerr.py
#
# - source: errbot_err-backend-cisco-webex-teams_plug
# target: /err/local_backends/err-backend-cisco-webex-teams/CiscoWebexTeams.plug
# - source: errbot_err-backend-cisco-webex-teams_py
# target: /err/local_backends/err-backend-cisco-webex-teams/CiscoWebexTeams.py
deploy:
mode: replicated
replicas: 1
resources:
limits:
memory: 512M
reservations:
memory: 384M
#Add healthcheck after enabling errbot webserver
#healthcheck:
# test: "/usr/bin/curl -s -I -X GET http://localhost:3141"
# interval: 25s
# timeout: 2s
# start-period: 30s
volumes:
- errbot-data:/err/data