@@ -27,9 +27,10 @@ services:
27
27
RABBITMQ_ERLANG_COOKIE : " SWQOKODSQALRPCLNMEQG"
28
28
healthcheck :
29
29
test : rabbitmq-diagnostics -q ping
30
- interval : 15s
30
+ start_period : 10s
31
+ interval : 5s
31
32
timeout : 30s
32
- retries : 3
33
+ retries : 5
33
34
networks :
34
35
- monaideploy
35
36
@@ -48,32 +49,30 @@ services:
48
49
MINIO_ROOT_PASSWORD : minioadmin
49
50
healthcheck :
50
51
test : ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
51
- interval : 15s
52
+ start_period : 10s
53
+ interval : 5s
52
54
timeout : 30s
53
- retries : 3
55
+ retries : 5
54
56
networks :
55
57
- monaideploy
56
58
57
- # createbuckets:
58
- # image: minio/mc
59
- # environment:
60
- # MINIO_ROOT_USER: minioadmin
61
- # MINIO_ROOT_PASSWORD: minioadmin
62
- # BUCKET_NAME: monaideploy
63
- # ENDPOINT: http://minio:9000
64
- # depends_on:
65
- # minio:
66
- # condition: service_healthy
67
- # networks:
68
- # - monaideploy
69
- # entrypoint: >
70
- # /bin/sh -c "
71
- # until (/usr/bin/mc config host add myminio $$ENDPOINT $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD) do echo '...waiting...' && sleep 1; done;
72
- # /usr/bin/mc mb myminio/$$BUCKET_NAME;
73
- # /usr/bin/mc policy set public myminio/$$BUCKET_NAME;
74
- # /usr/bin/mc ls myminio;
75
- # # exit 0
76
- # "
59
+ mongodb :
60
+ image : mongo:5.0.12
61
+ environment :
62
+ MONGO_INITDB_ROOT_USERNAME : root
63
+ MONGO_INITDB_ROOT_PASSWORD : rootpassword
64
+ ports :
65
+ - 27017:27017
66
+ volumes :
67
+ - ./.run/mongodb/:/data/db
68
+ networks :
69
+ - monaideploy
70
+ healthcheck :
71
+ test : echo 'db.runCommand("ping").ok' | mongo localhost:27017/productiondb --quiet
72
+ interval : 10s
73
+ timeout : 10s
74
+ retries : 5
75
+ start_period : 40s
77
76
78
77
orthanc :
79
78
image : " jodogne/orthanc-plugins"
@@ -96,6 +95,7 @@ services:
96
95
timeout : 30s
97
96
98
97
elasticsearch :
98
+ profiles : [ 'elk' ]
99
99
image : docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
100
100
hostname : elasticsearch
101
101
volumes :
@@ -118,6 +118,7 @@ services:
118
118
retries : 50
119
119
120
120
logstash :
121
+ profiles : [ 'elk' ]
121
122
image : docker.elastic.co/logstash/logstash:${ELASTIC_VERSION}
122
123
volumes :
123
124
- ./configs/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
@@ -140,6 +141,7 @@ services:
140
141
- monaideploy
141
142
142
143
kibana :
144
+ profiles : [ 'elk' ]
143
145
image : docker.elastic.co/kibana/kibana:${ELASTIC_VERSION}
144
146
volumes :
145
147
- ./configs/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,Z
@@ -159,6 +161,7 @@ services:
159
161
retries : 120
160
162
161
163
kibana-setup :
164
+ profiles : [ 'elk' ]
162
165
image : curlimages/curl:latest
163
166
volumes :
164
167
- ./configs/kibana.ndjson:/usr/share/kibana.ndjson
0 commit comments