-
Notifications
You must be signed in to change notification settings - Fork 390
Expand file tree
/
Copy pathdocker-compose.doris.yml
More file actions
75 lines (70 loc) · 1.97 KB
/
docker-compose.doris.yml
File metadata and controls
75 lines (70 loc) · 1.97 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
75
services:
web:
volumes:
- ./docker/doris/dhis-doris.conf:/opt/dhis2/dhis.conf:ro
depends_on:
doris-be:
condition: service_healthy
networks:
doris_network:
ipv4_address: 192.168.100.9
db:
networks:
doris_network:
ipv4_address: 192.168.100.8
doris-fe:
image: apache/doris:fe-${DORIS_VERSION}
networks:
doris_network:
ipv4_address: 192.168.100.10
ports:
- "9030:9030"
- "8030:8030"
environment:
- FE_SERVERS=fe1:192.168.100.10:9010
- FE_ID=1
volumes:
- ./docker/doris/postgresql-42.7.5.jar:/opt/apache-doris/fe/jdbc_drivers/postgresql.jar:ro
- ./docker/doris/fe.conf:/opt/apache-doris/fe/conf/fe.conf
- doris-fe-meta:/opt/apache-doris/fe/doris-meta
- doris-fe-log:/opt/apache-doris/fe/log
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8030/home || exit 1"]
interval: 10s
timeout: 5s
retries: 5
doris-be:
image: apache/doris:be-${DORIS_VERSION}
networks:
doris_network:
ipv4_address: 192.168.100.11
environment:
- FE_SERVERS=fe1:192.168.100.10:9010
- BE_ADDR=192.168.100.11:9050
ports:
- 8041:8040
depends_on:
doris-fe:
condition: service_healthy
volumes:
- ./docker/doris/be.conf:/opt/apache-doris/be/conf/be.conf
- ./docker/doris/postgresql-42.7.5.jar:/opt/apache-doris/be/jdbc_drivers/postgresql.jar:ro
- ./docker/doris/create-doris-database.sql:/docker-entrypoint-initdb.d/create-doris-database.sql:ro
- doris-be-storage:/opt/apache-doris/be/storage
- doris-be-log:/opt/apache-doris/be/log
healthcheck:
test:
["CMD-SHELL", "curl -fsS http://localhost:8040/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
doris-fe-meta:
doris-fe-log:
doris-be-storage:
doris-be-log:
networks:
doris_network:
ipam:
config:
- subnet: 192.168.100.0/24