Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.7"
- services:
- app:
- build: ./app
- command: bash -c "npm run start:docker"
- depends_on:
- - splunk
- environment:
- - NODE_ENV=development
- - SERVER_PORT=8080
- logging:
- driver: splunk
- options:
- splunk-format: "json"
- splunk-insecureskipverify: "true"
- splunk-source: "app"
- splunk-token: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
- splunk-url: "http://splunk:8088"
- tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
- ports:
- - "80:8080"
- volumes:
- - "./app:/usr/src/app"
- splunk:
- environment:
- - SPLUNK_ENABLE_LISTEN=9997
- - SPLUNK_START_ARGS=--accept-license --no-prompt --answer-yes
- - SPLUNK_USERNAME=admin
- - SPLUNK_PASSWORD=password
- hostname: splunk
- image: splunk/splunk:7.2.0
- ports:
- - "8000:8000"
- - "8088:8088"
- - "9997:9997"
- restart: always
Add Comment
Please, Sign In to add comment