mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
chore: switch container entrypoint to run shard.mjs
This commit is contained in:
1 parent
6439f07204
commit
e9a58f422a
3 files changed
+6
-1
No files matched your search
+1
-1
@@ -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 ["node", "shard.mjs"]
|
||||||
@@ -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: node shard.mjs
|
||||||
depends_on:
|
depends_on:
|
||||||
mysql:
|
mysql:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -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 "$@"
|
||||||
Reference in new issue
Block a user