Вы можете просто скопировать / вставить раздел Nifi между подразделом kibana
и разделом volumes
, например:
...
kibana:
image: amazon/opendistro-for-elasticsearch-kibana:1.1.0
container_name: odfe-kibana
ports:
- 5601:5601
expose:
- "5601"
environment:
ELASTICSEARCH_URL: https://odfe-node1:9200
ELASTICSEARCH_HOSTS: https://odfe-node1:9200
networks:
- odfe-net
nifi:
image: apache/nifi:latest
ports:
- 8080:8080 # Unsecured HTTP Web Port
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_ELECTION_MAX_WAIT=1 min
volumes:
- ./nifi-data:/opt/nifi-data/
- ./python:/opt/nifi-python
extra_hosts:
- "elasticsearch:odfe-node1"
networks:
- odfe-net
volumes:
odfe-data1:
odfe-data2:
networks:
odfe-net: