version: "3.1" services: db: restart: always container_name: pmr-db image: timescale/timescaledb:latest-pg14 privileged: true environment: POSTGRES_PASSWORD: Ph9B9bpSgCLUyZ4m7zYXw3M4WGqdHS6k POSTGRES_DB: pmr PGDATA: /var/lib/postgresql/data/pgdata volumes: - /home/pmr/pmr-backend/tsdata:/var/lib/postgresql/data/pgdata - /etc/localtime:/etc/localtime:ro - /home/pmr/pmr-backend/share:/mnt/share/ logging: driver: "json-file" options: max-size: "500m" ports: - 15432:5432 redis: restart: always container_name: pmr-redis image: redis:6.0.10 ports: - 26379:6379 logging: driver: "json-file" options: max-size: "100m" command: redis-server --requirepass hM3QmYwfGFr6Hh3RYY7kMqgW6mJAEde7 --notify-keyspace-events Ex # minio: # restart: always # container_name: pmr-minio # image: minio/minio:RELEASE.2021-03-17T02-33-02Z # ports: # - 29000:9000 # environment: # - MINIO_ROOT_USER=pmr # - MINIO_ROOT_PASSWORD=8ufhAdw2WQTBpus8vku6CkZDkncV9x9d # volumes: # - /home/pmr/minio/minio_data:/data # - /home/pmr/minio/certs:/root/.minio/certs # logging: # driver: "json-file" # options: # max-size: "500m" # command: server /data pmr-api-gateway: restart: always container_name: pmr-api-gateway image: node:14.16.0 environment: TZ: Asia/Shanghai ports: - 1443:443 volumes: - /home/pmr/pmr-backend/pmr-api-gateway:/usr/src/app - /etc/localtime:/etc/localtime:ro logging: driver: "json-file" options: max-size: "100m" working_dir: /usr/src/app command: node index.js pmr-access-control: restart: always container_name: pmr-access-control image: node:14.16.0 environment: TZ: Asia/Shanghai ports: - 23443:443 volumes: - /home/pmr/pmr-backend/pmr-access-control:/usr/src/app - /home/pmr/pmr-backend/pmr-access-control/fonts:/usr/src/fonts - /etc/localtime:/etc/localtime:ro logging: driver: "json-file" options: max-size: "500m" working_dir: /usr/src/app command: node index.js pmr-biz-manager: restart: always container_name: pmr-biz-manager image: node:21.6.0 environment: TZ: Asia/Shanghai ports: - 24443:443 volumes: - /home/pmr/pmr-backend/pmr-biz-manager:/usr/src/app - /etc/localtime:/etc/localtime:ro logging: driver: "json-file" options: max-size: "500m" working_dir: /usr/src/app command: node index.js