Skip to content

Commit 241fcf9

Browse files
committed
Add coolify deployment guide in readme
1 parent f854185 commit 241fcf9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,30 @@ Other than extensively refering to the Django documentation, I found these artic
9191

9292
## Deployment Guide
9393

94+
### Raw Server Deployments
95+
9496
- [Basic server configuration](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04)
9597
- [How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 22.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04)
9698
- [Setup SSL certificate for HTTPS](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-22-04)
99+
100+
101+
### Coolify using Dockerfile
102+
103+
Coolify supports docker-compose also, but as of writing this, docker compose deployments are unstable, and cause gateway timeout issues due to improper configuration in the proxy.
104+
105+
Using Dockerfile as deployment method is recommended in Coolify.
106+
107+
First of all deploy a Postgres instance on coolify and make it publicly accessible. Obviously set a very long password. Making the db accessible over internet can help you debug from local machine, and also coolify has some issues with resolving internal addresses when put in env vars. Once the db is deployed copy the values for db host, username, pass and port.
108+
109+
110+
Now deploy the actual app via Dockerfile, and set all the environment variables properly.
111+
112+
113+
Some important settings to be performed from coolify GUI
114+
115+
- **General** tab --> **Network** section --> Port exposes: 8000
116+
- Setup the domains, and add them to apt env vars `MORE_ALLOWED_HOSTS` and `PROD`
117+
- **Storages** tab --> Add --> Volume mount
118+
- source: a suitable path in your host filesystem
119+
- dest: `/data` (if you change this, you need to change `PROD_FILES_ROOT`)
120+
To persist static data between deployments, setup a

0 commit comments

Comments
 (0)