Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is that any way to self host using docker? #25

Open
BhautikChudasama opened this issue Sep 23, 2022 · 27 comments
Open

Is that any way to self host using docker? #25

BhautikChudasama opened this issue Sep 23, 2022 · 27 comments
Labels
enhancement New feature or request self-hosting

Comments

@BhautikChudasama
Copy link

Is that any way (or future) plan for hosting using docker?

@steven-tey steven-tey added the enhancement New feature or request label Sep 26, 2022
@steven-tey
Copy link
Collaborator

Seems like a lot of folks are interested in this: #12

To be completely honest I'm not very familiar with docker – if someone can PR this option into a branch (i.e. docker) I'm more than happy to feature it in the README as one of the self-hosted options :)

@BhautikChudasama
Copy link
Author

Can you specify environment variables needed to run / What services must run in order to run dub.sh?

@BhautikChudasama
Copy link
Author

Got it from .env.example.

@ruanbekker
Copy link

Im busy with adding a self-host option with docker in a wip branch:

docker-compose up -d --build

Then access in port 3000:

image

Atm getting a error:

dub-app      | Error [TypeError]: fetch failed
dub-app      |     at Object.processResponse (evalmachine.<anonymous>:3163:27)
dub-app      |     at <unknown> (evalmachine.<anonymous>:3507:42)
dub-app      |     at <unknown> (internal/process/task_queues.js:141:7)
dub-app      |     at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
dub-app      |     at AsyncResource.runMicrotask (internal/process/task_queues.js:138:8)

This might perhaps be due to the use of Upstash. Will look into it tomorrow again

@steven-tey
Copy link
Collaborator

Just wanted to follow up and say that I haven't forgotten about this issue yet – it's top on my TODO list for this week! Sorry again for the delay 😅

@IzMichael
Copy link

Is this still in the cards, or not a high priority atm?

@ps-89
Copy link

ps-89 commented Nov 4, 2022

I can help with the docker setup after I'm done with my setup. I've started with a self hosted setup on vercel. Have been able to sort out all issues. Just that how do I set the app.DOMAIN.vercel.app to point to dub.sh?

Currently all the links on the home page point to dub.sh like for eg. the login page. What I'm not sure about is how to configure my own subdomain(for eg. app.DOMAIN.com) with dub.sh.

@steven-tey any idea on this?

@steven-tey
Copy link
Collaborator

@IzMichael yes it's definitely still in the cards, apologies for the delay, I was busy with Next.js Conf + a few other updates for Dub the last couple of weeks. Will get to this as soon as I can!

@ps-89 we'll probably need to turn all instances of dub.sh into a modular process.env.MAIN_DOMAIN, which should be possible by doing a search and replace all inside VSCode!

@ps-89
Copy link

ps-89 commented Nov 6, 2022

@steven-tey I can raise a PR for this if you want(will help other folks with self set up)

Also, any plans to have a community slack/discord?

@steven-tey
Copy link
Collaborator

steven-tey commented Nov 6, 2022

@ps-89 That would be amazing – I'm also trying to think of a way to modularize away all the unnecessary stuff (e.g. landing page, Stripe integration), if y'all have any ideas I'm all ears! One way to do this is with Next.js 13's route groups 👀

As for community Slack/Discord, I'm thinking of trying out Threads instead, but might stick to Discord depending if it works out well with an OSS model. Will keep y'all posted!

@ps-89
Copy link

ps-89 commented Nov 7, 2022

@steven-tey Sure will raise a couple of PRs to start fixing a few things. I made a fork(via deploy on vercel button...not exactly a fork) and made it run on vercel but that required quite a few tweaks here and there. Will raise a PR to merge it into this repo.

We can try threads or slack or discord, whatever folks have a low barrier to entry and less context switch in using. Also, whichever is free and/or cheap. Primary reason is to ideate over a comms platform and perhaps fix few issues us(and others) are or might be facing. Let's set it up.

@steven-tey
Copy link
Collaborator

@ps-89 here you go: https://dub.sh/slack

It's by no means polished yet but feel free to join! :)

@ps-89
Copy link

ps-89 commented Nov 8, 2022

@steven-tey I guess it needs elegance.co email. And I tried with Google login, but didn't work.

Don’t have an @elegance.co email address?
Contact the workspace administrator at Dub for an invitation.

I've DMed you my email for slack on your twitter.

@steven-tey
Copy link
Collaborator

@ps-89 Oh weird, sorry about that! I just updated the link – can you try again?=

@ItsJamesMurray
Copy link

Any update here? I'd love to self-host but prefer everything through docker and running on my home-lab.

@Ashutosh-Malve
Copy link

Any update here? steven-tey

@Stunt0265
Copy link

I'm interested in self-host docker as well.

@ghost
Copy link

ghost commented May 27, 2023

+1

@ralyodio
Copy link

any movemenet on this? its been over a year. dub.sh looks cool but I'd like docker-compose.yml support.

@hexclann
Copy link

hexclann commented Aug 1, 2023

+1

@cirrusflyer
Copy link

Docker would be perfect.

@steven-tey
Copy link
Collaborator

Quickly following up here – we don't have any plans to add official Docker support for Dub, but we're more than happy to accept community contributions!

It'll look something like @calcom's community-maintained Docker support: https://cal.com/docs/introduction/quick-start/self-hosting/docker

@cirrusflyer
Copy link

Can I ask why you won't support Docker officially?

@0x7466
Copy link

0x7466 commented Oct 23, 2023

+1

@ARHAEEM
Copy link

ARHAEEM commented Jan 23, 2024

I believe the best option here is to install Docker using coolify.io.

They have already suggested it there, and I believe they will integrate it soon.

Coolify is another amazing Docker management panel. Adding integration as a template will benefit users of both projects, creating a win-win situation.

@ayntk-ai
Copy link

Any updates on when docker support will be possible? maybe without external database analytics and such, just docker and a local database probably in a docker container on Coolify panel.

@luolongfei
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request self-hosting
Projects
None yet
Development

No branches or pull requests