Deploying Strapi x PostgreSQL x Docker [Resolved]
Hello 👋
I'm trying to deploy a Strapi 5 app and a corresponding postgres database using docker but I'm facing some issues.
The build and deployment process seems to work properly but when it tries to start the strapi container. I got this error :
It seems like there is only the strapi container that start but not the psql one.
I'm using dokploy v0.10.1
I uploaded my Dockerfile and docker-compose.yml with the post
16 Replies
Same error when I try to connect to a db created directly on dokploy.
Ok, I managed to make it work using the
Internal Host
key insteaof the Internal Connection URL
which look something like portfolio-ldev-portfolio-db-bg3h8d
So I can access to my Strapi admin but the https is broken even if I crated a domain with traefik and selected the auto https certificate option.
Also I would like to understand why I had to create my DB separately and why docker didn't created it automatically?So I changed my docker-compose.yml to fit the recomandations in the doc for traefik but HTTPS is still broken and the A DNS rule on my cloudflare is not working neither :/
What’s the error you are facing with https?

You are using generated domains?
Hum there is two things. I have one generated domain but the https is broken on it and I have my own domain set with cloudflare DNS but i'm getting this error on it

Generated domains cannot have https
In the docs we mention if I’m not wrong
Have you followed the docs?
We have a guide for cloudflare specific
Cloudflare | Dokploy
This guide will cover how to configure a Cloudflare domain for your applications in dokploy or panel.
I followed this one : https://docs.dokploy.com/docs/core/docker-compose/example
I'll check your link sorry ^^
Example | Dokploy
Learn how to use Docker Compose with Dokploy
Ok, so I followed the documentation but still have an issue. The is exposed on my domain but the SSL certificate is broken
https://portfolio.le-dev.com/admin/auth/login
I'm using the flexible mode
I guess you cannot generate certificates for 2 domain level I guess
You are using a domain with two levels
I guess cloudflare restrict to a 1 level
Only if you pay you can get certificates for deep domain levels
Actually I already have a same level of subdomain for a project on firebase with cloudflare and it's working properly https://cv.le-dev.com/
Développeur web Paris | CV Alexandre Hachim
CV Hachim Alexandre, développeur web JS Fullstack à Paris
How did you create the domain, can you show?
oh wait, the difference is that with this domain i'm using DNS only without the proxy. Same for https://roue.le-dev.com
Kikidaily?
Une roue pour determiner qui animera la prochaine réunion
For me is working that domain
I can see the strapi login page
Ah YES, it's working now. maybe it just took time. Thanks dude and sorry for missing the doc at first time. I'll close this and let it here for other people