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

Self hosting with docker #124

Closed
waterfal1 opened this issue Mar 30, 2024 · 2 comments
Closed

Self hosting with docker #124

waterfal1 opened this issue Mar 30, 2024 · 2 comments

Comments

@waterfal1
Copy link

Hello there! Thank you for providing such an amazing service! I attempted to self-host a Docker image, but unfortunately, I encountered some difficulties. I used https://hub.docker.com/r/jacoblincool/leetcode-stats-card/tags docker image. I also got the same result after generating my own image from your repository.

I've attached the logs from the web service on Render.com for your review.
Screenshot from 2024-03-30 14-29-43

@JacobLinCool
Copy link
Owner

Hi @waterfal1

It requires you to bind in-container path /worker/cache to a host directory.

Like this one:

volumes:
- ./.storage/cache:/worker/cache

Or if you don't need the cache to persist, you can make the directory in your Dockerfile:

FROM jacoblincool/leetcode-stats-card

RUN mkdir /worker/cache

@waterfal1
Copy link
Author

@JacobLinCool, Thank you! All is good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants