forked from wmo-im/wis2box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
148 lines (138 loc) · 3.45 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
services:
web-proxy:
container_name: nginx
image: nginx:alpine
restart: always
env_file:
- wis2box.env
depends_on:
- wis2box-ui
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
wis2box-ui:
container_name: wis2box-ui
image: ghcr.io/wmo-im/wis2box-ui:latest
restart: always
env_file:
- wis2box.env
depends_on:
- wis2box-api
# wis2box-ui-admin:
# container_name: wis2box-ui-admin
# image: ghcr.io/wmo-im/wis2box-ui-admin:latest
# restart: always
# env_file:
# - wis2box.env
# depends_on:
# - wis2box-api
wis2box-webapp:
container_name: wis2box-webapp
image: ghcr.io/wmo-im/wis2box-webapp:latest
env_file:
- wis2box.env
wis2box-api:
container_name: wis2box-api
image: ghcr.io/wmo-im/wis2box-api:1.0b6
restart: always
env_file:
- wis2box.env
depends_on:
elasticsearch:
condition: service_healthy
volumes:
- api-config:/data/wis2box/config/pygeoapi/:rw
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/oapi/admin/resources"]
interval: 5s
retries: 100
minio:
container_name: wis2box-minio
image: minio/minio:RELEASE.2022-12-02T19-19-22Z.fips
mem_limit: 512m
memswap_limit: 512m
restart: always
env_file:
- wis2box.env
command: server --console-address ":9001" /data
# in a production-setup minio needs to be
volumes:
- minio-data:/data
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: docker.elastic.co/elasticsearch/elasticsearch:8.6.2
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
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: ghcr.io/wmo-im/wis2box-broker:1.0.beta1
restart: always
build:
context: ./wis2box-broker
env_file:
- wis2box.env
wis2box-management:
container_name: wis2box-management
mem_limit: 1g
memswap_limit: 1g
restart: always
#image: ghcr.io/wmo-im/wis2box-management:1.0.beta1
build:
context: ./wis2box-management
#user: wis2box:wis2box
env_file:
- wis2box.env
volumes:
- ${WIS2BOX_HOST_DATADIR}:/data/wis2box:rw
depends_on:
minio:
condition: service_healthy
mosquitto:
condition: service_started
wis2box-api:
condition: service_healthy
command: ["wis2box", "pubsub" , "subscribe"]
wis2box-auth:
container_name: wis2box-auth
image: ghcr.io/wmo-im/wis2box-auth:latest
restart: always
env_file:
- wis2box.env
volumes:
- auth-data:/data/wis2box:rw
depends_on:
- wis2box-management
volumes:
es-data:
minio-data:
auth-data:
api-config: