docker
This commit is contained in:
parent
1f4193f9c0
commit
a49db6e4ae
9 changed files with 228 additions and 18 deletions
15
mongodb/Dockerfile
Normal file
15
mongodb/Dockerfile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FROM mongo:latest
|
||||
|
||||
# Installation d'outils pour le healthcheck
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
netcat \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Script de healthcheck
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /healthcheck.sh
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=30s --retries=5 \
|
||||
CMD ["/healthcheck.sh"]
|
||||
|
||||
EXPOSE 27017
|
||||
Loading…
Add table
Add a link
Reference in a new issue