-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
93 lines (93 loc) · 3.15 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
version: "3"
services:
neo4j:
image: neo4j:4.2.1
# build:
# context: .
# dockerfile: Dockerfile.neo4j.dev
container_name: neo4j-db
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
volumes:
- ./neo4j/conf:/conf
- ./neo4j/data:/data
- ./ETL/processedData/mysqlData/:/import
- ./neo4j/logs:/logs
- ./neo4j/plugins:/plugins
- ./ETL/load/neo4jLoad:/load
# - ./ETL/load/neo4jLoad:/import/load
environment:
# Raise memory limits
- NEO4J_dbms_memory_pagecache_size=2G
- NEO4J_dbms.memory.heap.initial_size=4G
- NEO4J_dbms_memory_heap_max__size=8G
- NEO4J_AUTH=neo4j/your_password
- dbms.connector.bolt.listen_address=bolt://neo4j:pass@neo4j_db:7687
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
# - NEO4JLABS_PLUGINS=["apoc"]
db:
image: mysql:8
container_name: mysql-db
restart: unless-stopped
ports:
- 13306:3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/config:/etc/mysql/conf.d
- ./ETL/load/mysqlLoad:/script
- ./ETL/processedData/mysqlData/:/dw_data/mysqlData/
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: your_password
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --secure-file-priv=''
# Hive配置:
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
volumes:
- ./hive/namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hivescript/hadoop-hive.env
ports:
- "50070:50070"
datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8
volumes:
- ./hive/datanode:/hadoop/dfs/data
- ./hive_data/data:/hadoop-data
env_file:
- ./hivescript/hadoop-hive.env
environment:
SERVICE_PRECONDITION: "namenode:50070"
ports:
- "50075:50075"
hive-server:
image: bde2020/hive:2.3.2-postgresql-metastore
volumes:
./hive_data/local_data:/hadoop-data
env_file:
- ./hivescript/hadoop-hive.env
environment:
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore"
SERVICE_PRECONDITION: "hive-metastore:9083"
ports:
- "10000:10000"
- "10002:10002"
hive-metastore:
image: bde2020/hive:2.3.2-postgresql-metastore
env_file:
- ./hivescript/hadoop-hive.env
command: /opt/hive/bin/hive --service metastore
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 hive-metastore-postgresql:5432"
ports:
- "9083:9083"
hive-metastore-postgresql:
image: bde2020/hive-metastore-postgresql:2.3.0
presto-coordinator:
image: shawnzhu/prestodb:0.181
ports:
- "8080:8080"