-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdocker-compose.ranger.yml
More file actions
93 lines (89 loc) · 2.17 KB
/
docker-compose.ranger.yml
File metadata and controls
93 lines (89 loc) · 2.17 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
ranger:
build:
context: .
dockerfile: Dockerfile.ranger
args:
- RANGER_BASE_IMAGE=${RANGER_BASE_IMAGE}
- RANGER_BASE_VERSION=${RANGER_BASE_VERSION}
- RANGER_VERSION=${RANGER_VERSION}
- RANGER_DB_TYPE=${RANGER_DB_TYPE}
image: ranger:latest
container_name: ranger
hostname: ranger.example.com
stdin_open: true
tty: true
networks:
- ranger
ports:
- "6080:6080"
depends_on:
ranger-zk:
condition: service_started
ranger-db:
condition: service_healthy
ranger-solr:
condition: service_started
healthcheck:
test: [ "CMD-SHELL", "curl -i -u admin:rangerR0cks! 'http://localhost:6080'" ]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
environment:
- RANGER_VERSION
- RANGER_DB_TYPE
- DEBUG_ADMIN=${DEBUG_ADMIN:-false}
command:
- /home/ranger/scripts/ranger.sh
ranger-db:
extends:
service: ${RANGER_DB_TYPE}
file: docker-compose.ranger-db.yml
ranger-zk:
build:
context: .
dockerfile: Dockerfile.ranger-zk
args:
- ZK_VERSION=${ZK_VERSION}
image: ranger-zk
container_name: ranger-zk
hostname: ranger-zk.example.com
networks:
- ranger
ports:
- "2181:2181"
healthcheck:
test: [ "CMD-SHELL", "echo ruok | nc localhost 2181 | grep imok" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
environment:
ZOO_4LW_COMMANDS_WHITELIST: "mntr,conf,ruok"
ranger-solr:
build:
context: .
dockerfile: Dockerfile.ranger-solr
args:
- SOLR_VERSION=${SOLR_VERSION}
image: ranger-solr
container_name: ranger-solr
hostname: ranger-solr.example.com
networks:
- ranger
ports:
- "8983:8983"
command:
- solr-precreate
- ranger_audits
- /opt/solr/server/solr/configsets/ranger_audits/
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:8983/solr/ranger_audits/admin/ping" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
networks:
ranger:
name: rangernw