galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

Docker compose for turbo rewrite #799

Closed Bacon-Fixation closed 1 year ago

Bacon-Fixation commented 1 year ago

docker implementation for turbo rewrite

users can run pnpm run docker-compose to build/update the docker cluster

Change summary Dockerfile - revised for pnpm and nodejs v19-slim docker-compose - specified a major version for each service in cluster (redis, postgres, lavalink) .dockerignore - added ".turbo" folders to the list package.json - added "docker-compose" script

Minor package.json script changes packages\db\package.json - added the missing "dev" script when trying to use pnpm run db:studio apps\bot\package.json - "copy-scripts" changed the pnpx -> pnpm exec - pnpx seems to have been deprecated and pnpm exec and pnpm dlx can be used with pnpm@8.6.7 or higher

Much Love -Bacon

Bacon-Fixation commented 1 year ago

came to the realization 'copy-scripts' pnpx only needs to be changed to pnpm exec for Windows user and Docker containers,

and pnpm exec doesn't work on Debian and Ubuntu (can't locate ncp)

taking this pr down for now

Much Love -Bacon