-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-tests.yaml
44 lines (42 loc) · 1.09 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
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/mysql-server:8.0.32
environment:
- MYSQL_DATABASE=admin
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=admin
networks:
default:
ports:
- 9306:3306
volumes:
- ./test_mysql.cnf:/etc/my.cnf:ro
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/