Skip to content

Commit

Permalink
fix: remove ulimits from Docker Compose configuration (causes problem…
Browse files Browse the repository at this point in the history
…s in rootless mode) [#1]
  • Loading branch information
d3p1 committed May 19, 2024
1 parent 367188f commit 3484fa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/setup/services/search/elasticsearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
# @note This file is intended to be used as an extension of the
# main/primary `docker-compose.yml`
# (i.e.: using the `-f` flag in `docker compose up` command)
# @note It is removed the `ulimits` setting recommended by the
# documentation because it causes problems with
# Docker rootless mode
# @link https://www.elastic.co/guide/en/elasticsearch/reference/8.13/docker.html#_configure_and_start_the_cluster
# @link https://github.com/wazuh/wazuh-docker/issues/903#issuecomment-1798120664
# @link https://github.com/moby/moby/issues/40942
##
services:
web:
Expand All @@ -22,10 +27,6 @@ services:
- services/search/elasticsearch/.env
restart:
always
ulimits:
memlock:
soft: -1
hard: -1

volumes:
searchdata:
12 changes: 5 additions & 7 deletions src/setup/services/search/opensearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
# @note This file is intended to be used as an extension of the
# main/primary `docker-compose.yml`
# (i.e.: using the `-f` flag in `docker compose up` command)
# @note It is removed the `ulimits` setting recommended by the
# documentation because it causes problems with
# Docker rootless mode
# @link https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/#sample-docker-composeyml
# @link https://github.com/wazuh/wazuh-docker/issues/903#issuecomment-1798120664
# @link https://github.com/moby/moby/issues/40942
##
services:
web:
Expand All @@ -22,13 +27,6 @@ services:
- services/search/opensearch/.env
restart:
always
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536

volumes:
searchdata:

0 comments on commit 3484fa3

Please sign in to comment.