docker-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: '2'
  2. services:
  3. postgres:
  4. image: postgres:9.4
  5. environment:
  6. POSTGRES_PASSWORD: 'postgres'
  7. volumes:
  8. - data-postgres:/var/lib/postgresql/data
  9. ports:
  10. - "5432:5432"
  11. kong:
  12. image: mashape/kong
  13. volumes:
  14. - "./data/etc/kong:/etc/kong"
  15. ports:
  16. - "127.0.0.1:8000:8000"
  17. - "127.0.0.1:8001:8001"
  18. - "7946:7946"
  19. - "7373:7373"
  20. links:
  21. - postgres:postgres
  22. environment:
  23. KONG_PG_PASSWORD: 'postgres'
  24. KONG_PG_HOST: 'postgres'
  25. KONG_PG_DATABASE: 'postgres'
  26. KONG_PG_USER: 'postgres'
  27. stats:
  28. build: ./stats
  29. image: trafficker/stats
  30. volumes:
  31. - "./stats:/opt/statsd"
  32. ports:
  33. - "80:80"
  34. - "2003-2004:2003-2004"
  35. - "2023-2024:2023-2024"
  36. - "8125:8125/udp"
  37. - "8126:8126"
  38. pushpin:
  39. image: fanout/pushpin
  40. environment:
  41. - "LOGNAME=nobody"
  42. ports:
  43. - "7999:7999"
  44. dashboard:
  45. build: ./dashboard
  46. image: trafficker/dashboard
  47. ports:
  48. - "3030:3030"
  49. webui:
  50. image: trafficker/webui
  51. build: ./webui
  52. ports:
  53. - "127.0.0.1:8080:8080"
  54. volumes:
  55. data-postgres: