HI
Is it possible to have multiple splunk docker container in the same host. I am trying with that but whenever i start the second container the first one get crashed. My Docker compose is like:
...
...
...
splunk1:
hostname: splunk1
container_name: splunk1
image: splunk/splunk:latest
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_ADD: tcp 1514
SPLUNK_PASSWORD: admin!
SPLUNK_USERNAME: admin
volumes:
- './splunk1/etc/web.conf:/opt/splunk/etc/system/local/web.conf'
volumes_from:
- vsplunk
links:
- vsplunk
ports:
- "8000:8000"
- "9997:9997"
- "8088:8088"
- "1514:1514"
networks:
- mynet
splunk2:
hostname: splunk2
container_name: splunk2
image: splunk/splunk:latest
environment:
SPLUNK_START_ARGS: --accept-license
SPLUNK_ENABLE_LISTEN: 9998
SPLUNK_ADD: tcp 1514
SPLUNK_PASSWORD: admin!
SPLUNK_USERNAME: admin
volumes:
- './splunk2/etc/web.conf:/opt/splunk/etc/system/local/web.conf'
# volumes_from:
#- vsplunk
#links:
#- vsplunk
ports:
- "8001:8000"
- "9998:9998"
- "8089:8088"
- "1515:1514"
networks:
- mynet
...
...
...
... View more