..SHARDING

This commit is contained in:
NoLogicAlan committed 2026-10-21 01:29:23 +03:00
1 parent f54764d58d
commit 7c5f783855
3 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -41,4 +41,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"] ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"]
CMD ["node", "index.mjs"] CMD ["npm", "run", "shard"]
+1
View File
@@ -5,6 +5,7 @@ services:
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
container_name: remix-bot container_name: remix-bot
restart: unless-stopped restart: unless-stopped
command: npm run shard
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy
+4
View File
@@ -25,4 +25,8 @@ if [ "$1" = "node" ] && [ "$2" = "shard.mjs" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor)..." echo "[Docker] Starting Remix bot (sharded supervisor)..."
fi fi
if [ "$1" = "npm" ] && [ "$2" = "run" ] && [ "$3" = "shard" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor via npm run shard)..."
fi
exec "$@" exec "$@"