docker-compose-gateway.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. version: '2'
  2. services:
  3. gateway-init:
  4. image: docker.finogeeks.club/finochat/gateway-init:latest
  5. depends_on:
  6. - gateway
  7. environment:
  8. API_GATEWAY_ENV: demo
  9. KONG_ADMIN_URL: http://gateway:8001
  10. LOG_LEVEL: info
  11. volumes:
  12. - ./demo.yaml:/app/route-tmpl/demo.yaml
  13. networks:
  14. - finochat-tier
  15. gateway-dashboard:
  16. image: docker.finogeeks.club/base/kong-dashboard:3.3.0
  17. depends_on:
  18. - gateway
  19. ports:
  20. - 9000:8080
  21. command:
  22. - start
  23. - --kong-url
  24. - http://gateway:8001
  25. - --basic-auth
  26. - admin=admin159357
  27. networks:
  28. - finochat-tier
  29. gateway:
  30. privileged: true
  31. image: docker.finogeeks.club/finochat/gateway:latest
  32. depends_on:
  33. - gateway-db
  34. environment:
  35. KONG_ANONYMOUS_REPORTS: 'off'
  36. KONG_DATABASE: postgres
  37. KONG_PG_HOST: gateway-db
  38. KONG_PG_PASSWORD: admin159357
  39. ports:
  40. - 8000:8000
  41. command:
  42. - kong
  43. - start
  44. - --run-migrations --vv
  45. networks:
  46. - finochat-tier
  47. gateway-db:
  48. privileged: true
  49. image: docker.finogeeks.club/base/postgres:1.0.0
  50. environment:
  51. POSTGRES_DB: kong
  52. POSTGRES_PASSWORD: admin159357
  53. POSTGRES_USER: kong
  54. #volumes:
  55. #- ./volumes/gateway-db-finochat:/var/lib/postgresql/data
  56. networks:
  57. - finochat-tier
  58. networks:
  59. finochat-tier: