version: '2.3' services: zookeeper: image: zookeeper:3.4.12 expose: - "2181" environment: ZOO_TICK_TIME: 500 ZOO_MY_ID: 1 healthcheck: test: echo stat | nc localhost 2181 interval: 3s timeout: 10s retries: 60 start_period: 2s security_opt: - label:disable