-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (63 loc) · 1.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (63 loc) · 1.63 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
version: "3.9"
services:
postgres:
image: "postgres:latest"
restart: always
environment:
POSTGRES_PASSWORD: postgres
ports:
- 5434:5432
volumes:
- ./tests/setup/populate_ci_postgres.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
mysql:
image: "mysql:latest"
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysql
ports:
- 3306:3306
volumes:
- ./tests/setup/populate_ci_mysql.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-pmysql"]
interval: 5s
timeout: 5s
retries: 10
fakesnow:
build:
context: .
dockerfile: tests/setup/fakesnow.Dockerfile
restart: always
ports:
- 12345:12345
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('localhost',12345),timeout=2); s.close()"]
interval: 5s
timeout: 5s
retries: 5
clickhouse:
image: "clickhouse/clickhouse-server:latest"
restart: always
environment:
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- 18123:8123
- 19000:9000
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- ./tests/setup/populate_ci_clickhouse.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8123/ping"]
interval: 5s
timeout: 5s
retries: 5