-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
185 lines (173 loc) · 4.33 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: "3"
services:
rabbitmq:
image: rabbitmq-nayco
build:
context: rabbitmq
hostname: rabbitmq
restart: always
ports:
- 15672:15672 # Web management console. Default account guest:guest
- 1883:1883 # MQTT Port
- 5672:5672 # RabbitMQ Port for debugging
environment:
- TZ
# RabbitMQ to ClickHouse
grebe:
image: tac0x2a/grebe:v1.3.3
hostname: grebe
restart: always
ports:
- 8888:8888 # Web API
environment:
- MQ_QNAME=nayco # Queue name to subscribe on RabbitMQ
- MQ_HOST=rabbitmq # RabbitMQ host
- DB_HOST=clickhouse # Clickhouse host
- SCHEMA_STORE=rdb # Schema on Clickhouse
- TZ
- TZ_STR=${TZ}
- API_PORT=8888
volumes:
- ./volume/grebe/logs:/logs
- ./volume/grebe/schemas:/schemas
# File storage to RabbitMQ
onamazu:
image: tac0x2a/o-namazu:v0.3.1
hostname: onamazu
restart: always
environment:
- TZ
volumes:
- ./volume/onamazu/logs:/logs
- ./volume/storage_volume:/data:z
# Column-oriented DWH. db=default, user=default, pass=default
clickhouse:
image: yandex/clickhouse-server:21.7.4.18-alpine
hostname: clickhouse
restart: always
ports:
- 8123:8123 # HTTP client port
- 9004:9004 # MySQL Interface(wire protocol) port
- 9000:9000 # Native port
environment:
- TZ:UTC
volumes:
- ./volume/clickhouse:/var/lib/clickhouse
# Portainer - Monitoring containers
portainer: # admin - tryportainer
image: portainer/portainer-ce:2.6.1-alpine
hostname: portainer
restart: always
ports:
- 19000:9000
environment:
- TZ
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./volume/portainer/data:/data
scope: # host:4040
image: weaveworks/scope:1.13.1
hostname: scope
restart: always
network_mode: host
pid: host
privileged: true
labels:
- "works.weave.role=system"
environment:
- TZ
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
command:
- "--probe.docker=true"
# Metabase visualize data on ClickHouse.
metabase:
image: metabase-nayco
build:
context: metabase
hostname: metabase
restart: always
ports:
- 3000:3000
environment:
- MB_DB_FILE=/metabase-data/metabase.db
- JAVA_TIMEZONE=Asia/Tokyo
- TZ
volumes:
- ./volume/metabase:/metabase-data
# Tabix - Clickhouse web based client
tabix:
image: spoonest/clickhouse-tabix-web-client:stable
hostname: tabix
restart: always
ports:
- 8080:80
environment:
- CH_HOST=clickhouse:8123
- TZ
# Node-RED
node-red:
image: nodered/node-red:1.2.9-12-minimal
hostname: nodered
restart: always
ports:
- 1880:1880
environment:
- TZ
volumes:
- ./volume/nodered/data:/data
- ./volume/storage_volume:/storage:z
user: root:root
# File Storage ----------------------------------------------------------------------------------
# Filebrowser
# admin:admin
filebrowser:
image: filebrowser/filebrowser:v2.11.0-alpine
hostname: filebrowser
restart: always
ports:
- "8082:80"
environment:
- TZ
volumes:
- ./volume/storage_volume:/srv:z
samba: # nayco:nayco
image: dperson/samba:amd64
restart: always
hostname: samba
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
tmpfs:
- /tmp
read_only: false
stdin_open: true
tty: true
environment:
- TZ
volumes:
- ./volume/storage_volume:/mnt/storage:z
command: '-s "nayco;/mnt/storage;yes;no;no;nayco" -u "nayco;nayco" -p -g "hide dot files = no"'
# -s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]"
# -p Set ownership and permissions on the shares
# -u "<username;password>[;ID;group;GID]"
# Uminoco ----------------------------------------------------------------------------------
uminoco:
image: uminoco
restart: always
hostname: uminoco
build:
context: uminoco
args:
project_directory: "/projects/"
ports:
- "5000:5000"
environment:
- FLASK_ENV=productiont
- DB_HOST=clickhouse
- DB_PORT=9000
- GREBE_HOST=grebe
- GREBE_PORT=8888
- TZ