-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.integration-test.yaml
89 lines (83 loc) · 2.04 KB
/
docker-compose.integration-test.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.9"
services:
mysql8:
image: mysql:8
container_name: mysql8
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: webhook-broker
MYSQL_USER: webhook_broker
MYSQL_PASSWORD: zxc909zxc
ports:
- "45060:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 30s
timeout: 20s
retries: 10
start_period: 20s
networks:
brokeritest:
aliases:
- "mysql8"
ibroker:
build: .
container_name: ibroker
volumes:
- ./webhook-broker-integration-test.cfg:/webhook-broker.cfg
command: ["./webhook-broker", "-migrate", "./migration/sqls/"]
depends_on:
mysql8:
condition: service_healthy
links:
- mysql8:mysql
ports:
- "31818:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/_status"]
interval: 3s
timeout: 10s
retries: 3
start_period: 2s
networks:
brokeritest:
aliases:
- "webhook-broker"
ipruner:
build:
context: .
dockerfile: ./integration-test/prune-integration-test.Dockerfile
container_name: ipruner
volumes:
- ./webhook-broker-integration-test.cfg:/webhook-broker.cfg
- ./integration-test/config/prune/nginx.conf:/etc/nginx/nginx.conf
- ./integration-test/config/prune/file_browser_nginx.conf:/etc/nginx/http.d/file_browser.conf
- ./integration-test/config/prune/runner.sh:/runner.sh
depends_on:
ibroker:
condition: service_healthy
links:
- mysql8:mysql
ports:
- "30080:80"
networks:
brokeritest:
aliases:
- "webhook-broker-pruner"
tester:
build: integration-test/.
container_name: tester
command: ["make", "run"]
depends_on:
ibroker:
condition: service_healthy
links:
- ibroker:webhook-broker
- mysql8:mysql
- ipruner:webhook-broker-pruner
networks:
brokeritest:
aliases:
- "tester"
networks:
brokeritest: