-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
services:
mariadb:
image: mariadb:10.7
container_name: utopia-usage-mariadb
restart: unless-stopped
networks:
- usage
ports:
- "3307:3306"
volumes:
- mariadb:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=utopiaTests
- MYSQL_USER=user
- MYSQL_PASSWORD=password
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:
- usage
ports:
- "8124:8123"
- "9001:9000"
healthcheck:
test: ["CMD", "clickhouse-client", "--host=localhost", "--port=9000", "-q", "SELECT 1"]
interval: 5s
timeout: 3s
retries: 10
start_period: 15s
usage:
container_name: utopia-usage
build:
context: .
dockerfile: Dockerfile
networks:
- usage
volumes:
- ./tests:/code/tests
- ./src:/code/src
depends_on:
mariadb:
condition: service_healthy
clickhouse:
condition: service_healthy
healthcheck:
test: ["CMD", "php", "--version"]
interval: 5s
timeout: 3s
retries: 3
start_period: 5s
networks:
usage:
volumes:
mariadb: