forked from jhunt/shout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.27 KB
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
services:
shout:
build: .
command:
- --port=7109
- --db=/data/shout.db
- --rules=/rules/rules.yml
- --ops=shouty:abouty
- --admin=admin:sadmin
- --expiry=0
ports:
- "7109:7109"
environment:
SHOUT_SLACK_API_URL: "http://mock-slack:8080/api/chat.postMessage"
volumes:
- shout-data:/data
- ./rules.test.yml:/rules/rules.yml:ro
depends_on:
mock-slack:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:7109/info"]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s
mock-slack:
build: ./mock-slack
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 5s
timeout: 3s
retries: 3
start_period: 2s
test-client:
build:
context: ./test-client
dockerfile: Dockerfile-go
depends_on:
shout:
condition: service_healthy
environment:
SHOUT_URL: "http://shout:7109"
MOCK_SLACK_URL: "http://mock-slack:8080"
OPS_CREDS: "shouty:abouty"
ADMIN_CREDS: "admin:sadmin"
profiles:
- test
volumes:
shout-data: