-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (105 loc) · 3.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.9'
volumes:
postgres:
services:
postgres:
container_name: "db-labs"
image: postgres:13
environment:
POSTGRES_DB: "lab_01"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
PGDATA: /data/postgres
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- "5555:5432"
networks:
- my_persistent_network
# configuration manager for NiFi (lab_08)
zookeeper:
hostname: myzookeeper
container_name: zookeeper_container_persistent
image: 'bitnami/zookeeper:3.7.0'
restart: on-failure
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- my_persistent_network
# version control for nifi flows (lab_08)
registry:
hostname: myregistry
container_name: registry_container_persistent
image: 'apache/nifi-registry:1.15.0'
restart: on-failure
ports:
- "18080:18080"
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
volumes:
- ./nifi_registry/database:/opt/nifi-registry/nifi-registry-current/database
- ./nifi_registry/flow_storage:/opt/nifi-registry/nifi-registry-current/flow_storage
networks:
- my_persistent_network
# data extraction, transformation and load service (lab_08)
nifi:
hostname: mynifi
container_name: nifi_container_persistent
image: 'apache/nifi:1.14.0'
restart: on-failure
ports:
- '8091:8080'
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_CLUSTER_IS_NODE=true
- NIFI_CLUSTER_NODE_PROTOCOL_PORT=8082
- NIFI_ZK_CONNECT_STRING=myzookeeper:2181
- NIFI_ELECTION_MAX_WAIT=30 sec
- NIFI_SENSITIVE_PROPS_KEY='12345678901234567890A'
healthcheck:
test: "${DOCKER_HEALTHCHECK_TEST:-curl localhost:8091/nifi/}"
interval: "60s"
timeout: "3s"
start_period: "5s"
retries: 5
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
- ./nifi/jks:/opt/nifi/nifi-current/jks
- ./nifi/in_file:/opt/nifi/nifi-current/in_file
networks:
- my_persistent_network
# bi grafana (lab_10)
grafana:
image: grafana/grafana:latest
container_name: grafana_container
restart: always
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: password
GF_SERVER_ROOT_URL: http://localhost:3000/grafana/
GF_SERVER_SERVE_FROM_SUB_PATH: "true"
volumes:
- postgres:/var/lib/grafana:rw
depends_on:
- postgres
networks:
- my_persistent_network
# redis (lab_09)
redis:
image: redis:latest
container_name: redis_container
ports:
- "6379:6379"
networks:
my_persistent_network:
driver: bridge