odoo / docker

Other
931 stars 1.51k forks source link

[Feature Request] Could it be possible to add fail2ban to the docker image? #505

Closed josopu closed 1 month ago

josopu commented 1 month ago

I am trying to add fail2ban to the docker, but it would be amazing to have it included on the docker image.

amh-mw commented 1 month ago

Instead of installing an additional package that everyone who uses this image may not want, build a custom image with a Dockerfile like this?

FROM odoo:17
USER root
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        fail2ban \
    && rm -rf /var/lib/apt/lists/*
USER odoo
derfl0 commented 1 month ago

May i ask: what attacks are you trying to prevent here?

josopu commented 1 month ago

I just like to safeguard all my exposed services.

derfl0 commented 1 month ago

I just like to salve guard all my exposed services.

In the Odoo Docker image the only exposed service is Odoo itself. No other service, like for example SSH, is running. So no need to protect anything

josopu commented 1 month ago

I'd like to protect Odoo itself