create-t3-turbo icon indicating copy to clipboard operation
create-t3-turbo copied to clipboard

feat: Implement docker deployment

Open pieter-berkel opened this issue 2 years ago • 10 comments

Describe the feature you'd like to request

I would like to see how to deploy with docker, maybe in the template or at least in the documentation.

Describe the solution you'd like to see

I would like to see a docker example in the documentation.

Additional information

I already tried with the normal turborepo example but this fails because this template uses pnpm.

pieter-berkel avatar Jan 09 '23 22:01 pieter-berkel

I'd be open for this - however we currently have some issues getting a normal T3 app Docker setup going so I think I'll wait until that one has been resolved before attempting to set it up for monorepos.

Follow it here: https://github.com/t3-oss/create-t3-app/issues/992

juliusmarminge avatar Jan 13 '23 10:01 juliusmarminge

Did someone figure it out?

pmioduszewski avatar Mar 08 '23 20:03 pmioduszewski

@pmioduszewski yes! I've created a PR for it right now you can go check it out https://github.com/t3-oss/create-t3-turbo/pull/255

Feel free to ask me questions / review it if you think there are stuff that can be written better :)

EkkoKo avatar Mar 31 '23 13:03 EkkoKo

Thanks @EkkoKo By taking a squiz at your PR I was able to resolve issues I was having running in docker. I was going around in circles all morning till I found your work!

oldo avatar Apr 28 '23 04:04 oldo

I did a bunch of work to dockerize this repo for fly.io. It's all here:

https://github.com/kutruff/fly-t3-turbo

(It's based on EkkOko's PR.)

akutruff avatar Nov 08 '23 17:11 akutruff

What about deploying using SST ? Would that be doable even ?

raphaelm-gioa avatar Dec 30 '23 14:12 raphaelm-gioa

Any update on this?

bryanjtc avatar Jun 11 '24 16:06 bryanjtc

@bryanjtc - i don't think so.

But there is a new medium articel for this topic: https://fintlabs.medium.com/optimized-multi-stage-docker-builds-with-turborepo-and-pnpm-for-nodejs-microservices-in-a-monorepo-c686fdcf051f

Maybe it helps to get started :)

noxify avatar Jun 12 '24 07:06 noxify

I ended up using this Dockerfile from the official turbo docker example https://github.com/vercel/turbo/blob/main/examples/with-docker/apps/web/Dockerfile It works perfectly.

bryanjtc avatar Jun 22 '24 23:06 bryanjtc