dokku | A docker-powered PaaS that helps you build and manage the lifecycle of applications | Continuous Deployment library
kandi X-RAY | dokku Summary
kandi X-RAY | dokku Summary
Docker powered mini-Heroku. The smallest PaaS implementation you've ever seen.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dokku
dokku Key Features
dokku Examples and Code Snippets
$ mkdir hellodjango && cd hellodjango
$ virtualenv venv
$ source venv/bin/activate
$ pip install django-toolbelt
$ django-admin.py startproject hellodjango .
$ echo "web: gunicorn hellodjango.wsgi" > Procfile
$ pip freeze > requirements
$ wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
$ cat ~/.ssh/id_rsa.pub | ssh root@ "sudo sshcommand acl-add dokku "
$ cat ~/.ssh/id_rsa.pub | ssh root@104.236.38.176 "sudo sshcommand acl-add do
Community Discussions
Trending Discussions on dokku
QUESTION
I am trying to deploy a Next.js application with Dokku (Heroku). The application was previously deployed to Vercel without error, but on the Dokku deploy CORS is failing. I've made some progress in fixing it.
The Next.js server communicates with another eternal Python Django API through an API gateway.
Initially the POST request errored with the "No 'Access-Control-Allow-Origin' header is present" error. I added the headers to moduleExports
:
next.config.js
...ANSWER
Answered 2022-Jan-13 at 08:28There is your problem:
QUESTION
On my remote server all I did is:
...ANSWER
Answered 2021-Nov-29 at 11:12So you are following the article "Hosting NodeJs Apps on Your Own Heroku, Using Dokku" from Pedro Alonso
The problem is: you are using a non-default naming convention for your SSH key (vincent.pub
for you, dokku_rsa.pub
in the article)
For a git push to work, you would need:
- an
%USERPROFILE%/.ssh/config
file set to reference your private key - a remote URL using the
.ssh/config
Host entry
That is
QUESTION
We're getting "django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library", GeoDjango's common installation issue.
Dev environment is Win10 and GDAL libraries were resolved following this answer on the same question for windows, which supplies filepaths directly. I now can't deploy because prod is Ubuntu 20.04 and that answer doesn't address how to resolve on Ubuntu.
I'm new to Ubuntu / Linux and I think I've installed GDAL with sudo apt install libpq-dev gdal-bin libgdal-dev
following these instructions, but Django doesn't know how to find the libraries nor do I. This question mentions "GDAL_LIBRARY_PATH = '/usr/local/lib/libgdal.so.1.15.1'", but my "/usr/local/lib/" only includes the dirs of python3.8 and 3.9.
Also, unsure if relevant but I'm deploying on Dokku, and am unsure if containerizing things precludes Django from finding libs outside of Dokku's fancy ecosystem I don't well understand. This post is the only other post mentioning both Dokku and GDAL, and although it asks something unrelated its requirements.txt includes "GDAL==2.4.1". Could we somehow resolve this by supplying it in a similar way?
What simple thing am I missing or doing wrong?
...ANSWER
Answered 2021-Nov-02 at 13:28Figured it out. Install the dokku-apt plugin and place a file named exactly "apt-packages" in the project's root. In that file list the packages you want installed, which in this case was:
QUESTION
I have an existing application that I am trying to port over to Dokku, and part of that is getting the existing data store copied over. I am using the Dokku Postgres plugin, but am having trouble getting the database ported over.
In my existing app I am creating a dump of the database:
...ANSWER
Answered 2021-Aug-25 at 12:25From the source of dokku postgres:export
command in dokku-postgres plugin :
QUESTION
I'm attempting to set up Mautic (https://github.com/mautic/docker-mautic) on Dokku. I have everything working well except for the mounted volume. Mautic stores config files in the volume, so every time the container restarts it needs to be reconfigured if the volume is not set up. The instructions on the above page are:
...ANSWER
Answered 2021-May-27 at 05:31It looks like the directory that the config files are stored in is /var/www/html
instead of /mautic_data
. In the docker command referenced, mautic_data
in -v mautic_data:/var/www/html
is the name of the volume on the host created by docker volume create mautic_data
, not the directory inside the container.
Try using:
QUESTION
So, here is the problem I ran into, I am trying to build a very small-scale MVP app that I will be releasing soon. I have been able to figure out everything from deploying the flask application with Dokku (I'll upgrade to something better later) and have been able to get most things working on the app including S3 uploading, stripe integration, etc. Here is the one thing I am stuck on, how do I generate SSL certs on the fly for customers and then link everything back to the Python app? Here are my thoughts:
I can use a simple script and connect to the Letsencrypt API to generate and request certs once domains are pointed to my server(s). The problem I am running into is that once the domain is pointed, how do I know? Dokku doesn't connect all incoming requests to my container and therefore Flask wouldn't be able to detect it unless I manually connect it with the dokku domains:add
command?
Is there a better way to go about this? I know of SSL for SaaS by Cloudflare but it seems to only be for their Enterprise customers and I need a robust solution like this that I don't mind building out but just need a few pointers (unless there is already a solution that is out there for free - no need to reinvent the wheel, eh?). Another thing, in the future I do plan to have my database running separately and load balancers pointing to multiple different instances of my app (won't be a major issue as the DB is still central, but just worried about the IP portion of it). To recap though:
Client Domain (example.io) -> dns1.example.com -> Lets Encrypt SSL Cert -> Dokku Container -> My App
Please let me know if I need to re-explain anything, thank you!
...ANSWER
Answered 2021-May-06 at 15:47Your solutions is a wildcard certificate, or use app prefixing.
So I'm not sure why you need a cert per customer, but let's say you are going to do
customer1.myapp.com
-> routes to customer1 backend. For whatever reason.
Let's Encrypt lets you register *.myapp.com and therefore you can use subdomains for each customer.
The alternative is a customer prefix.
Say your app URL looks like www.myapp.com/api/v1/somecomand
you could use www.myapp.com/api/v1/customerID/somecommand
and then allow your load balancer to route based on the prefix and use a rewrite rule to remove the customerID back to the original URL.
This is more complicated, and it is load balancer dependent but so is the first solution.
All this being said, both solutions would most likely require a separate instance of your application per customer, which is a heavy solution, but fine if that's what you want and are using lightweight containers or deploying multiple instances per server.
Anyway, a lot more information would be needed to give a solid solution.
QUESTION
I have deployed a botpress application to AWS (EC2) with Dokku, following the docs of botpress. To communicate with the bot I'm doing API calls to the IP address (52.xx.xxx.xx:3000).
This works fine when I'm running my RN app locally or when I test the API with Postmen. As soon as I release an APK I can't communicate with the API anymore, and I don't have a way to see why network requests are failing.
Since I'm not very experienced with servers, I'm assuming the problem lies somewhere in the server settings, thank you for any advice.
...ANSWER
Answered 2021-May-04 at 09:37are you using HTTP? in that case use android:usesCleartextTraffic="true"
in AndroidManifest.xml
QUESTION
I have made a website using Node for server and Next for front-end. When I login, I make a request with these headers:
...ANSWER
Answered 2021-Mar-25 at 15:40Issue seems to be you using url instead of a domain. You should use domain loop.herbievine.com
instead of https://loop.herbievine.com
.
If you would like to share cookies with other sub domains then you will use the domain as .herbievine.com
QUESTION
I found "Nirvana" (or should I say Tailwind) - it's just about how great I find this library/framework! It goes well with Rails - and Webpacker too. In fact, all is well except for this one bugger;
I've got this sneaky little contraption of mine affording quite readable view templates (and yeah - I know - it's obviously flawed in a million ways but it gets the job done, what can I say)
...ANSWER
Answered 2021-Feb-28 at 23:02Sometimes the answer is right under your nose - as was the case at hand! I knew it had to do with something happening before I would start 'uploading' to the server and I had my eyes fixed on PostCSS; it certainly paid off!
My tailwind.config.js tells PostCSS what files to vacuum - and it looked like this:
QUESTION
I'm currently trying to perform the first deploy of my app with Dokku. Unfortunately, I have an error:
...ANSWER
Answered 2021-Feb-25 at 12:27OK, the problem was quite silly. The puma gem was in the development group, and therefore was not available in production to launch the server.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dokku
View the docs for upgrading from an older version of Dokku.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page