t3-oss / create-t3-turbo

Clean and simple starter repo using the T3 Stack along with Expo React Native
https://turbo.t3.gg
MIT License
4.28k stars 353 forks source link

feat: Implement docker deployment #111

Open pieter-berkel opened 1 year ago

pieter-berkel commented 1 year ago

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.

juliusmarminge commented 1 year ago

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

pmioduszewski commented 1 year ago

Did someone figure it out?

EkkoKo commented 1 year ago

@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 :)

oldo commented 1 year ago

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!

akutruff commented 8 months ago

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.)

raphaelm-gioa commented 6 months ago

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

bryanjtc commented 3 weeks ago

Any update on this?

noxify commented 3 weeks ago

@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 :)

bryanjtc commented 2 weeks ago

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.