SeafilePro Docker Elasticsearch docker-compose

Hi,
I’m new to Docker and now want to set up Seafile Pro with elasticsearch.
Everything works so far except for elasticsearch (if I comment it out). As soon as I try elastic, it no longer works? Do I have to set something additional? The error is as follows:

ERROR: for elasticsearch Cannot start service elasticsearch: failed to create shim: OCI runtime create failed: container_linux.go: 380: starting container process caused: process_linux.go: 545: container init caused: process_linux.go: 446: setting rlimits for ready process caused: error setting rlimit type 8: operation not permitted: unknown
ERROR: Encountered errors while bringing up the project.

Docker-Compose
version: ‘3.8’
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_LOG_CONSOLE=true
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql
networks:
- seafile-net

memcached:
image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net

elasticsearch:
image: seafileltd/elasticsearch-with-ik:5.6.16
container_name: seafile-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- “ES_JAVA_OPTS= -Xms1g -Xmx1g”
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
volumes:
- /opt/seafile-elasticsearch/data:/usr/share/elasticsearch/data
networks:
- seafile-net

seafile:
image: docker.seadrive.org/seafileltd/seafile-pro-mc:latest
container_name: seafile
ports:
- “7012:80”
volumes:
- /opt/seafile-data:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=secret
- TIME_ZONE=Etc/UTC
- SEAFILE_ADMIN_EMAIL=my.mail.com
- SEAFILE_ADMIN_PASSWORD=secret
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=domain.domain.com
depends_on:
- db
- memcached
- elasticsearch
networks:
- seafile-net

networks:
seafile-net:

Ubuntu version:20.04
Docker-Compose Version: 1.29.2

Any ideas?

Thanks a lot!

I found a solution: commenting out
"# ulimits:
"# memlock:
"# soft: -1
"# hard: -1
"# mem_limit: 2g
seems to work.