mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-23 15:56:37 +00:00
convert kcconf.py to unix line endings
add *:236 to default config add healthckeck script Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
4dd68c9499
commit
0aaba5224e
@ -47,3 +47,6 @@ COPY kcconf.py defaultconfigs/ start-service.sh /kopano/
|
|||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
|
|
||||||
CMD [ "/kopano/start-service.sh" ]
|
CMD [ "/kopano/start-service.sh" ]
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=60s \
|
||||||
|
CMD /kopano/healthcheck.sh
|
||||||
|
@ -9,7 +9,7 @@ kcconf.configkopano({
|
|||||||
'log_level': "3",
|
'log_level': "3",
|
||||||
'attachment_path': "/kopano/data/attachments/",
|
'attachment_path': "/kopano/data/attachments/",
|
||||||
'user_plugin': "ldap",
|
'user_plugin': "ldap",
|
||||||
'server_listen': "",
|
'server_listen': "*:236",
|
||||||
'server_listen_tls': "*:237"
|
'server_listen_tls': "*:237"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
10
core/healthcheck.sh
Normal file
10
core/healthcheck.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case "$SERVICE_TO_START" in
|
||||||
|
server)
|
||||||
|
dockerize \
|
||||||
|
-wait tcp://localhost:237 \
|
||||||
|
([ -f /kopano/data/.user-sync ] || kopano-cli --sync; touch /kopano/data/.user-sync)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
Loading…
x
Reference in New Issue
Block a user