-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose-tests.yaml
85 lines (82 loc) · 1.89 KB
/
docker-compose-tests.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
version: '2'
services:
clickhouse_db:
image: bitnami/clickhouse:latest
logging:
driver: "json-file"
options:
max-size: "100m"
environment:
- ALLOW_EMPTY_PASSWORD=no
- CLICKHOUSE_ADMIN_PASSWORD=admin
- CLICKHOUSE_ADMIN_USER=default
- CLICKHOUSE_HTTP_PORT=9123
networks:
default:
ports:
- 9123:9123
volumes:
- ./tests_override.xml:/bitnami/clickhouse/etc/conf.d/override.xml:ro
healthcheck:
test: ["CMD", "true"]
interval: 5s
timeout: 1s
retries: 1
start_period: 15s
mysql_db:
image: mysql:8.4.3
environment:
MYSQL_DATABASE: admin
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: admin
ports:
- "9306:3306"
volumes:
- ./test_mysql.cnf:/etc/mysql/my.cnf:ro
networks:
- default
healthcheck:
test: ["CMD", "true"]
interval: 5s
timeout: 1s
retries: 1
start_period: 15s
mariadb_db:
image: mariadb:11.5.2
environment:
- MARIADB_DATABASE=admin
- MARIADB_ROOT_HOST=%
- MARIADB_ROOT_PASSWORD=admin
networks:
default:
ports:
- 9307:3306
volumes:
- ./test_mariadb.cnf:/etc/mysql/my.cnf:ro # Adjust path to MariaDB config location if needed
healthcheck:
test: ["CMD", "true"]
interval: 5s
timeout: 1s
retries: 1
start_period: 15s
replicator:
build:
context: .
dockerfile: Dockerfile
network_mode: host
volumes:
- ./:/app/
entrypoint: ["/bin/bash"]
command: ["-c", "touch /tmp/ready && tail -f /dev/null"]
healthcheck:
test: [ 'CMD-SHELL', 'test -f /tmp/ready' ]
interval: 2s
retries: 100
start_period: 10s
depends_on:
clickhouse_db:
condition: service_healthy
mysql_db:
condition: service_healthy
mariadb_db:
condition: service_healthy