services: # Factory Gateway gateway: build: ./factory-gateway/. ports: - "12000:12000" volumes: - ./factory-gateway/src/global/logger:/usr/src/app/src/global/logger environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 depends_on: - chargestations - customer_service - email_service - payment_service - promotion_service - reservation_service networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "1000m" max-file: "2" # Factory Charge Station chargestations: build: ./factory-chargestations/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "1000m" max-file: "2" # Factory Customer Service customer_service: build: ./factory-customer/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "100m" max-file: "2" # Factory Email Service email_service: build: ./factory-email/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always # Factory Payment Service payment_service: build: ./factory-payment/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "500m" max-file: "2" # Factory promotion Service promotion_service: build: ./factory-promotion/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "100m" max-file: "2" # Factory reservation Service reservation_service: build: ./factory-reservation/. environment: - NODE_ENV=production - TZ=Asia/Hong_Kong # 设置香港时区 networks: - factory restart: always logging: driver: json-file # 使用默认的 json-file 驱动 options: max-size: "100m" max-file: "2" networks: factory: driver: bridge