Skip to content

Commit 93d8da7

Browse files
committed
Added capabilities to mysql and elasticsearch services.
1 parent 26e138f commit 93d8da7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ services:
2424
working_dir: /root
2525
environment:
2626
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
27+
cap_add:
28+
- SYS_NICE
2729
ports:
2830
- "${MYSQL_PORT}:3306"
2931
volumes:
@@ -52,10 +54,15 @@ services:
5254
- "cluster.name=${COMPOSE_PROJECT_NAME}-cluster"
5355
- bootstrap.memory_lock=true
5456
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
57+
cap_add:
58+
- IPC_LOCK
5559
ulimits:
5660
memlock:
5761
soft: -1
5862
hard: -1
63+
nofile:
64+
soft: 65536
65+
hard: 65536
5966
healthcheck:
6067
interval: 10s
6168
timeout: 2s

0 commit comments

Comments
 (0)