-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
127 lines (117 loc) · 3.15 KB
/
compose.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '3'
networks:
goodonions:
driver: bridge
ipam:
driver: default
config:
- subnet: "10.0.0.0/24"
services:
spark_master:
image: 'bitnami/spark:latest'
container_name: spark_master
hostname: spark_master
user: root
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_LOCAL_HOSTNAME=10.0.0.2
ports:
- '7077:7077'
- '4040:4040'
- '8080:8080'
volumes:
- './spark/master/spark_data:/bitnami'
env_file:
- .env
networks:
goodonions:
ipv4_address: 10.0.0.2
spark-worker:
image: 'bitnami/spark:latest'
container_name: spark_worker
hostname: spark_worker
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=10.0.0.2:7077
- SPARK_WORKER_MEMORY=2G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_LOCAL_HOSTNAME=10.0.0.3
- SPARK_WORKER_OPTS=-Dspark.worker.cleanup.interval=60 -Dspark.worker.cleanup.appDataTtl=120 -Dspark.worker.cleanup.enabled=true
ports:
- '8081:8081'
depends_on:
- spark_master
env_file:
- .env
networks:
goodonions:
ipv4_address: 10.0.0.3
zookeeper:
image: 'bitnami/zookeeper:latest'
container_name: zookeeper
hostname: zookeeper
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
goodonions:
ipv4_address: 10.0.0.4
kafka:
image: 'bitnami/kafka:latest'
container_name: kafka
restart: always
hostname: kafka
ports:
- '9093:9093'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=INTERNAL://:9094,EXTERNAL://:9093
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9094,EXTERNAL://localhost:9093 #
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT #INTERNAL PLAIN COSI ZOOKEEPER NON CAGA IL CAZZO
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_CONFLUENT_SUPPORT_METRICS_ENABLE=false
- KAFKA_CFG_DELETE_TOPIC_ENABLE=true
- KAFKA_AUTO_CREATE_TOPICS_ENABLE=true
depends_on:
- zookeeper
#volumes:
#- ./kafka/data:/bitnami/kafka
networks:
goodonions:
ipv4_address: 10.0.0.5
cassandra:
image: 'bitnami/cassandra:latest'
container_name: cassandra
hostname: cassandra
ports:
- '9042:9042'
volumes:
- ./cassandra/cass1:/bitnami/cassandra
- ./cassandra/schema:/schema
networks:
goodonions:
ipv4_address: 10.0.0.6
redis:
image: 'redis'
container_name: redis
hostname: redis
ports:
- '6379:6379'
# deploy:
# resources:
# limits:
# memory: 1G
networks:
goodonions:
ipv4_address: 10.0.0.7