forked from hyperdxio/hyperdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
79 lines (77 loc) · 1.92 KB
/
docker-compose.ci.yml
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
version: '3.6'
services:
ch_keeper:
container_name: hdx-ci-ch-keeper
image: zookeeper:3.7
volumes:
- ./docker/clickhouse/local/zoo.cfg:/conf/zoo.cfg
restart: on-failure
networks:
- internal
ch_server:
container_name: hdx-ci-ch-server
image: clickhouse/clickhouse-server:23.5.2-alpine
environment:
# default settings
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
volumes:
- ./docker/clickhouse/local/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./docker/clickhouse/local/config.xml:/etc/clickhouse-server/config.xml
- ./docker/clickhouse/local/users.xml:/etc/clickhouse-server/users.xml
restart: on-failure
ports:
- 8123:8123 # http api
- 9000:9000 # native
networks:
- internal
depends_on:
- ch_keeper
db:
container_name: hdx-ci-db
image: mongo:5.0.14-focal
command: --port 29999
ports:
- 29999:29999
networks:
- internal
redis:
container_name: hdx-ci-redis
image: redis:7.0.11-alpine
ports:
- 6379:6379
networks:
- internal
api:
build:
context: .
dockerfile: ./packages/api/Dockerfile
target: dev
container_name: hdx-ci-api
image: hyperdx/ci/api
ports:
- 9000:9000
environment:
APP_TYPE: 'api'
CLICKHOUSE_HOST: http://ch_server:8123
CLICKHOUSE_PASSWORD: api
CLICKHOUSE_USER: api
EXPRESS_SESSION_SECRET: 'hyperdx is cool 👋'
FRONTEND_URL: http://localhost:9090 # need to be localhost (CORS)
MONGO_URI: 'mongodb://db:29999/hyperdx-test'
NODE_ENV: ci
PORT: 9000
REDIS_URL: redis://redis:6379
SERVER_URL: http://localhost:9000
volumes:
- ./packages/api/src:/app/src
networks:
- internal
depends_on:
- ch_server
- db
- redis
volumes:
test_mongo_data:
networks:
internal:
name: 'hyperdx-ci-internal-network'