Advertisement
Guest User

Untitled

a guest
Sep 12th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. version: '3.4'
  2. services:
  3. my-api:
  4. image: my-api
  5. depends_on:
  6. - mysql
  7. environment:
  8. - ASPNETCORE_ENVIRONMENT=Development
  9. - PRIMARY_CONNECTION_STRING=Database=myapidb;Server=mysql;Uid=my_api_user;Pwd=xxxxxxxxxxx;
  10.  
  11. # As I'm using the override for local dev, I include mysql into the mix
  12. mysql:
  13. container_name: mysql
  14. restart: always
  15. image: mysql:8.0.17
  16. environment:
  17. MYSQL_DATABASE: pricing
  18. MYSQL_ROOT_PASSWORD: 'xxxxxxxxxxx'
  19. MYSQL_USER: 'my_api_user'
  20. MYSQL_PASSWORD: 'xxxxxxxxxxx'
  21. ports:
  22. - 3306:3306
  23. expose:
  24. - 3306
  25. volumes:
  26. - ./Data/local-mysql-init/:/docker-entrypoint-initdb.d/
  27. - mysql-datavolume:/var/lib/mysql
  28.  
  29. splunkforwarder:
  30. build:
  31. context: .
  32. dockerfile: SplunkForwarder/Dockerfile
  33. environment:
  34. SPLUNK_START_ARGS: '--accept-license'
  35. SPLUNK_PASSWORD: 'xxxxxxxxxxx'
  36.  
  37. # Local copy of Splunk, for report writing, etc.
  38. splunk:
  39. container_name: splunk
  40. image: splunk/splunk:latest
  41. environment:
  42. SPLUNK_START_ARGS: '--accept-license'
  43. SPLUNK_PASSWORD: 'xxxxxxxxxxx'
  44. ports:
  45. - 8000:8000
  46. expose:
  47. - 9997
  48. volumes:
  49. - splunk-data:/opt/splunk/var
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement