-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.32 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
56
57
58
59
services:
mariadb:
image: mariadb:10.11
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- abuse
ports:
- "9306:3306"
healthcheck:
test: ["CMD", "sh", "-c", "mysqladmin ping -h localhost -u root -p$$MYSQL_ROOT_PASSWORD"]
interval: 5s
timeout: 3s
retries: 10
start_period: 30s
clickhouse:
image: clickhouse/clickhouse-server:25.11-alpine
environment:
- CLICKHOUSE_DB=default
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
networks:
- abuse
ports:
- "8123:8123"
- "9000:9000"
healthcheck:
test: ["CMD", "clickhouse-client", "--host=localhost", "--port=9000", "--query=SELECT 1", "--format=Null"]
interval: 5s
timeout: 3s
retries: 10
start_period: 15s
tests:
build:
context: .
dockerfile: ./Dockerfile
networks:
- abuse
depends_on:
mariadb:
condition: service_healthy
clickhouse:
condition: service_healthy
volumes:
- ./phpunit.xml:/code/phpunit.xml
- ./src:/code/src
- ./tests:/code/tests
healthcheck:
test: ["CMD", "php", "--version"]
interval: 5s
timeout: 3s
retries: 3
start_period: 5s
networks:
abuse: