-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose-tests.yaml
57 lines (54 loc) · 1.4 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
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
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
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
replicator:
image: python:3.12.4-slim-bookworm
command: bash -c "pip install -r /app/requirements.txt && pip install -r /app/requirements-dev.txt && touch /tmp/ready && tail -f /dev/null"
healthcheck:
test: [ 'CMD-SHELL', 'test -f /tmp/ready' ]
interval: 2s
retries: 100
start_period: 10s
network_mode: host
volumes:
- ./:/app/