Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
FROM node:lts-alpine
+ARG MAX_OLD_SPACE_SIZE
+
WORKDIR /usr/app
+ENV NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
+
COPY --from=builder /usr/builder/node_modules ./node_modules
COPY --from=builder /usr/builder/dist ./dist
COPY README.md NOTICE LICENSE ./
"ws://server:8010/OCPP16/5c866e81a2d9593de43efdb4"
],
"distributeStationsToTenantsEqually": true,
- "statisticsDisplayInterval": 60,
"workerProcess": "workerSet",
"workerPoolMinSize": 4,
"workerPoolMaxSize": 16,
"logRotate": false,
"logConsole": false,
"logFile": "/dev/stdout",
- "logErrorFile": "/dev/stderr"
+ "logErrorFile": "/dev/stderr",
+ "logStatisticsInterval": 60
}
version: '3.7'
networks:
- ev_network:
- driver: bridge
-
+ ev_network:
+ driver: bridge
services:
- charging-stations-simulator:
- build:
- context: ..
- dockerfile: docker/Dockerfile
- networks:
- - ev_network
+ charging-stations-simulator:
+ build:
+ context: ..
+ dockerfile: docker/Dockerfile
+ args:
+ MAX_OLD_SPACE_SIZE: 1024
+ networks:
+ - ev_network