docker-compose.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '2'
  2. services:
  3. redis:
  4. image: redis:5.0.4
  5. container_name: jetlinks-redis
  6. ports:
  7. - "6379:6379"
  8. volumes:
  9. - "./data/redis:/data"
  10. command: redis-server --appendonly yes --requirepass "JetLinks@redis"
  11. environment:
  12. - TZ=Asia/Shanghai
  13. elasticsearch:
  14. image: elasticsearch:6.8.10
  15. container_name: jetlinks-elasticsearch
  16. environment:
  17. ES_JAVA_OPTS: "-Djava.net.preferIPv4Stack=true -Xms2g -Xmx2g"
  18. TZ: Asia/Shanghai
  19. transport.host: 0.0.0.0
  20. discovery.type: single-node
  21. bootstrap.memory_lock: "true"
  22. discovery.zen.minimum_master_nodes: 1
  23. discovery.zen.ping.unicast.hosts: elasticsearch
  24. volumes:
  25. - "./data/elasticsearch:/usr/share/elasticsearch/data"
  26. ports:
  27. - "9200:9200"
  28. - "9300:9300"
  29. kibana:
  30. image: kibana:6.8.10
  31. container_name: jetlinks-kibana
  32. environment:
  33. ELASTICSEARCH_URL: http://elasticsearch:9200
  34. links:
  35. - elasticsearch:elasticsearch
  36. ports:
  37. - "5601:5601"
  38. depends_on:
  39. - elasticsearch
  40. postgres:
  41. image: postgres:11-alpine
  42. container_name: jetlinks-postgres
  43. ports:
  44. - "5432:5432"
  45. volumes:
  46. - "./data/postgres:/var/lib/postgresql/data"
  47. environment:
  48. POSTGRES_PASSWORD: jetlinks
  49. POSTGRES_DB: jetlinks
  50. TZ: Asia/Shanghai