-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
158 lines (148 loc) · 3.81 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
services:
web-proxy:
container_name: nginx
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
depends_on:
- wis2box-ui
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- htpasswd:/etc/nginx/.htpasswd:ro
wis2box-ui:
container_name: wis2box-ui
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
depends_on:
- wis2box-api
wis2box-webapp:
container_name: wis2box-webapp
image: WIS2BOX-RELEASE
env_file:
- wis2box.env
restart: always
wis2box-api:
container_name: wis2box-api
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/oapi/admin/resources"]
interval: 5s
retries: 100
volumes:
- ${WIS2BOX_HOST_DATADIR}/mappings:/data/wis2box/mappings:ro
minio:
container_name: wis2box-minio
image: WIS2BOX-RELEASE
mem_limit: 512m
memswap_limit: 512m
restart: always
env_file:
- wis2box.env
environment:
- MINIO_BROWSER_LOGIN_ANIMATION=off
- MINIO_BROWSER_REDIRECT=false
- MINIO_UPDATE=off
command: server --quiet --console-address ":9001" --sftp="address=:8022" --sftp="ssh-private-key=/home/miniouser/.ssh/id_rsa" /data
volumes:
- minio-data:/data
- ${WIS2BOX_HOST_DATADIR}/.ssh:/home/miniouser/.ssh:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 1s
retries: 3
depends_on:
mosquitto:
condition: service_started
elasticsearch:
container_name: elasticsearch
image: WIS2BOX-RELEASE
restart: always
environment:
- discovery.type=single-node
- discovery.seed_hosts=[]
- node.name=elasticsearch-01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- cluster.name=es-wis2box
- xpack.security.enabled=false
- ingest.geoip.downloader.enabled=false
- xpack.ml.enabled=false
- xpack.watcher.enabled=false
- xpack.graph.enabled=false
- xpack.monitoring.templates.enabled=false
- cluster.routing.allocation.disk.threshold_enabled=false
mem_limit: 1.5g
memswap_limit: 1.5g
volumes:
- es-data:/usr/share/elasticsearch/data:rw
# ulimits:
# nofile:
# soft: 524288
# hard: 524288
# memlock:
# soft: -1
# hard: -1
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 5s
retries: 100
mosquitto:
container_name: mosquitto
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
volumes:
- mosquitto-config:/mosquitto/config
wis2box-management:
container_name: wis2box-management
mem_limit: 1g
memswap_limit: 1g
restart: always
image: WIS2BOX-RELEASE
env_file:
- wis2box.env
volumes:
- ${WIS2BOX_HOST_DATADIR}:/data/wis2box:rw
- htpasswd:/home/wis2box/.htpasswd:rw
depends_on:
mosquitto:
condition: service_started
wis2box-api:
condition: service_healthy
command: ["wis2box", "pubsub" , "subscribe"]
wis2box-auth:
container_name: wis2box-auth
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
volumes:
- auth-data:/data/wis2box:rw
depends_on:
- wis2box-management
wis2downloader:
container_name: wis2downloader
image: WIS2BOX-RELEASE
restart: always
env_file:
- wis2box.env
user: 12135:${DOCKER_GID}
volumes:
- ${WIS2BOX_HOST_DATADIR}/downloads:/home/wis2downloader/app/data/downloads
volumes:
es-data:
minio-data:
auth-data:
htpasswd:
mosquitto-config: