diff --git a/Dockerfile b/Dockerfile index 1be6dff..49091b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -178,6 +178,11 @@ COPY --from=builder /app/node_modules/.pnpm/@prisma+engines*/node_modules/@prism # Copy package.json files for workspace resolution COPY package.json pnpm-workspace.yaml ./ +# Create symlinks so apps can find node_modules from root +RUN ln -s /app/node_modules /app/apps/api/node_modules && \ + ln -s /app/node_modules /app/apps/workers/node_modules && \ + ln -s /app/node_modules /app/apps/shared/node_modules + # ============================================================================= # Copy initialization scripts and configuration # ============================================================================= diff --git a/docker/supervisord.conf b/docker/supervisord.conf index 9c34603..02bed94 100644 --- a/docker/supervisord.conf +++ b/docker/supervisord.conf @@ -22,8 +22,9 @@ stopwaitsecs=60 # Redis # ============================================================================= [program:redis] -command=/usr/bin/redis-server --appendonly yes --daemonize no +command=/usr/bin/redis-server --appendonly yes --daemonize no --dir /var/lib/redis user=redis +directory=/var/lib/redis autostart=true autorestart=true priority=10