RUN pm2 install pm2-logrotate
RUN pm2 set pm2-logrotate:retain 5
RUN pm2 set pm2-logrotate:max_size 10M
RUN pm2 set pm2-logrotate:workerInterval 60
version: '3.9'
services:
web:
ports:
- "3000:3000"
build: .
image: my-app:${CORE_TAG-latest}
environment:
REDIS_HOST: "host.docker.internal"
# REDIS_PORT: 6379
DB_HOST: "host.docker.internal"