fix health check

This commit is contained in:
Noxcis 2024-10-08 02:11:19 -05:00
parent 8f1fb99278
commit 1efe556276
3 changed files with 5 additions and 13 deletions

View File

@ -31,13 +31,9 @@ COPY start.sh /opt/app/start.sh
RUN chmod +x /opt/app/start.sh
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
CMD [ "curl", "-f", "http://localhost:3001", "||", "exit", "1" ]
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD \
sh -c 'pgrep nginx > /dev/null && pgrep node > /dev/null' || exit 1
CMD ["/opt/app/start.sh", "start" ]

View File

@ -10,8 +10,7 @@ const Welcome = ({ roomId, translations, close }) => {
<li>Support on all modern browsers (Chrome, Firefox, Safari, Safari iOS, Android)</li>
<li>Slash commands (/nick, /me, /clear)</li>
<li>Room owners can lock the room, preventing anyone else from joining</li>
<li>Front-end rewritten in React.js and Redux</li>
<li>Send files up to 4 MB</li>
<li>Send files</li>
</ul>
<div>
You can learn more{' '}

View File

@ -6,8 +6,7 @@ services:
cap_add:
- NET_ADMIN
- SYS_MODULE
networks:
- db
ports:
- 3002:80
- 4001:443
@ -16,5 +15,3 @@ services:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
networks:
db: