docker-compose.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. version: "3.1"
  2. services:
  3. db:
  4. restart: always
  5. container_name: pmr-db
  6. image: timescale/timescaledb:latest-pg14
  7. privileged: true
  8. environment:
  9. POSTGRES_PASSWORD: Ph9B9bpSgCLUyZ4m7zYXw3M4WGqdHS6k
  10. POSTGRES_DB: pmr
  11. PGDATA: /var/lib/postgresql/data/pgdata
  12. volumes:
  13. - /home/pmr/pmr-backend/tsdata:/var/lib/postgresql/data/pgdata
  14. - /etc/localtime:/etc/localtime:ro
  15. - /home/pmr/pmr-backend/share:/mnt/share/
  16. logging:
  17. driver: "json-file"
  18. options:
  19. max-size: "500m"
  20. ports:
  21. - 15432:5432
  22. redis:
  23. restart: always
  24. container_name: pmr-redis
  25. image: redis:6.0.10
  26. ports:
  27. - 26379:6379
  28. logging:
  29. driver: "json-file"
  30. options:
  31. max-size: "100m"
  32. command: redis-server --requirepass hM3QmYwfGFr6Hh3RYY7kMqgW6mJAEde7 --notify-keyspace-events Ex
  33. # minio:
  34. # restart: always
  35. # container_name: pmr-minio
  36. # image: minio/minio:RELEASE.2021-03-17T02-33-02Z
  37. # ports:
  38. # - 29000:9000
  39. # environment:
  40. # - MINIO_ROOT_USER=pmr
  41. # - MINIO_ROOT_PASSWORD=8ufhAdw2WQTBpus8vku6CkZDkncV9x9d
  42. # volumes:
  43. # - /home/pmr/minio/minio_data:/data
  44. # - /home/pmr/minio/certs:/root/.minio/certs
  45. # logging:
  46. # driver: "json-file"
  47. # options:
  48. # max-size: "500m"
  49. # command: server /data
  50. pmr-api-gateway:
  51. restart: always
  52. container_name: pmr-api-gateway
  53. image: node:14.16.0
  54. environment:
  55. TZ: Asia/Shanghai
  56. ports:
  57. - 1443:443
  58. volumes:
  59. - /home/pmr/pmr-backend/pmr-api-gateway:/usr/src/app
  60. - /etc/localtime:/etc/localtime:ro
  61. logging:
  62. driver: "json-file"
  63. options:
  64. max-size: "100m"
  65. working_dir: /usr/src/app
  66. command: node index.js
  67. pmr-access-control:
  68. restart: always
  69. container_name: pmr-access-control
  70. image: node:14.16.0
  71. environment:
  72. TZ: Asia/Shanghai
  73. ports:
  74. - 23443:443
  75. volumes:
  76. - /home/pmr/pmr-backend/pmr-access-control:/usr/src/app
  77. - /home/pmr/pmr-backend/pmr-access-control/fonts:/usr/src/fonts
  78. - /etc/localtime:/etc/localtime:ro
  79. logging:
  80. driver: "json-file"
  81. options:
  82. max-size: "500m"
  83. working_dir: /usr/src/app
  84. command: node index.js
  85. pmr-biz-manager:
  86. restart: always
  87. container_name: pmr-biz-manager
  88. image: node:21.6.0
  89. environment:
  90. TZ: Asia/Shanghai
  91. ports:
  92. - 24443:443
  93. volumes:
  94. - /home/pmr/pmr-backend/pmr-biz-manager:/usr/src/app
  95. - /etc/localtime:/etc/localtime:ro
  96. logging:
  97. driver: "json-file"
  98. options:
  99. max-size: "500m"
  100. working_dir: /usr/src/app
  101. command: node index.js