-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
74 lines (73 loc) · 2.06 KB
/
Copy pathdocker-compose.test.yaml
File metadata and controls
74 lines (73 loc) · 2.06 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
70
71
72
73
74
version: "3.7"
services:
dev_clickhouse_server:
image: clickhouse/clickhouse-server:23.6.2.18-alpine
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "localhost:8123/ping"]
interval: 30s
timeout: 5s
retries: 3
ports:
- 8143:8123
- 9000:9000
volumes:
- ./_dev/clickhouse:/var/lib/clickhouse
- ./_dev/clickhouse-users/:/etc/clickhouse-server/users.d/
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
integration_server:
build: .
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8087/health || exit 1
interval: 30s
retries: 3
start_period: 3s
timeout: 10s
ports:
- 8087:8087
environment:
- BRUM_SERVER_PORT=8087
- BRUM_DATABASE_HOST=dev_clickhouse_server
- BRUM_DATABASE_PORT=9000
- BRUM_DATABASE_NAME=default
- BRUM_DATABASE_USERNAME=default
- BRUM_DATABASE_PASSWORD=
- BRUM_DATABASE_TABLE_PREFIX=integration_test_
- BRUM_PERSISTANCE_DATABASE_STRATEGY=all_in_one_db
- BRUM_PERSISTANCE_TABLE_STRATEGY=all_in_one_table
- BRUM_BACKUP_ENABLED=false
- BRUM_BACKUP_DIRECTORY=/home/basicrum_backup
- BRUM_BACKUP_INTERVAL_SECONDS=5
depends_on:
dev_clickhouse_server:
condition: service_healthy
integration_test:
image: golang:1.21-alpine
environment:
- BRUM_SERVER_HOST=integration_server
- BRUM_SERVER_PORT=8087
- BRUM_DATABASE_HOST=dev_clickhouse_server
- BRUM_DATABASE_PORT=9000
- BRUM_DATABASE_NAME=default
- BRUM_DATABASE_USERNAME=default
- BRUM_DATABASE_PASSWORD=
- BRUM_DATABASE_TABLE_PREFIX=integration_test_
- CGO_ENABLED=0
depends_on:
integration_server:
condition: service_healthy
working_dir: /go/src/app/it
command: go test
volumes:
- .:/go/src/app/
unit_test:
image: golang:1.21-alpine
environment:
- CGO_ENABLED=0
working_dir: /go/src/app/beacon
command: go test
volumes:
- .:/go/src/app/