-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 2.75 KB
/
docker-compose.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
version: '3.7'
services:
zookeeper:
container_name: zookeeper_${HOSTNAME:-localhost}
image: bitnami/zookeeper:${ZOOKEEPER_VERSION:-3.7.0}
restart: always
hostname: zookeeper_${HOSTNAME:-localhost}
environment:
- ALLOW_ANONYMOUS_LOGIN=${ZK_ALLOW_ANONYMOUS_LOGIN:-yes}
networks:
- frontend
nifi_registry:
container_name: nifi-registry_${HOSTNAME:-localhost}
image: apache/nifi-registry:${NIFI_REGISTRY_VERSION:-1.18.0}
restart: always
hostname: nifi-registry_${HOSTNAME:-localhost}
environment:
- LOG_LEVEL=INFO
- NIFI_REGISTRY_DB_DIR=/opt/nifi-registry/nifi-registry-current/database
- NIFI_REGISTRY_FLOW_PROVIDER=file
- NIFI_REGISTRY_FLOW_STORAGE_DIR=/opt/nifi-registry/nifi-registry-current/flow_storage
ports:
- 18080:18080
networks:
- frontend
volumes:
- ./nifi_registry/database:/opt/nifi-registry/nifi-registry-current/database
- ./nifi_registry/flow_storage:/opt/nifi-registry/nifi-registry-current/flow_storage
nifi:
container_name: nifi_${HOSTNAME:-localhost}
image: 'apache/nifi:${NIFI_VERSION:-1.18.0}
restart: always
hostname: nifi_${HOSTNAME:-localhost}
environment:
- NIFI_WEB_HTTPS_PORT=${NIFI_WEB_HTTPS_PORT:-8443}
- NIFI_CLUSTER_IS_NODE=${NIFI_CLUSTER_IS_NODE:-true}
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=${NIFI_CLUSTER_NODE_PROTOCOL_PORT:-8082}
- NIFI_ZK_CONNECT_STRING=zookeeper_${HOSTNAME:-localhost}:2181
- NIFI_ELECTION_MAX_WAIT=${NIFI_ELECTION_MAX_WAIT:-30 sec}
- SINGLE_USER_CREDENTIALS_USERNAME=${SINGLE_USER_CREDENTIALS_USERNAME:-admin}
- SINGLE_USER_CREDENTIALS_PASSWORD={SINGLE_USER_CREDENTIALS_PASSWORD:-changeme}
- NIFI_SENSITIVE_PROPS_KEY=${NIFI_SENSITIVE_PROPS_KEY:-changeme}
ports:
- '8443:8443'
volumes:
- ./nifi/database_repository:/opt/nifi/nifi-current/database_repository
- ./nifi/flowfile_repository:/opt/nifi/nifi-current/flowfile_repository
- ./nifi/content_repository:/opt/nifi/nifi-current/content_repository
- ./nifi/provenance_repository:/opt/nifi/nifi-current/provenance_repository
- ./nifi/state:/opt/nifi/nifi-current/state
- ./nifi/logs:/opt/nifi/nifi-current/logs
# uncomment the next line after copying the /conf directory from the container to your local directory to persist NiFi flows
#- ./nifi/conf:/opt/nifi/nifi-current/conf
networks:
- frontend
volumes:
database_repository:
driver: local
flowfile_repository:
driver: local
content_repository:
driver: local
provenance_repository:
driver: local
state:
driver: local
data:
driver: local
logs:
driver: local
networks:
frontend:
name: network_nifi_${HOSTNAME:-localhost}
driver: bridge