123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- 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
|