Open GuillaumeLazar opened 7 months ago
@jonocodes thoughts?
@jonocodes thoughts?
Yes I have been thinking about how to present the docker setup once sailfrog/cypht-docker is no longer used. Generally docker compose is not used much in production but it does make a good starting point for describing how a contain is used.
There are a bunch of scenarios that we can give compose files for since there are different configs.
But I will say for the most part these should just be 'tips' since they should be out of scope for this project.
The part I have been hung up on is would these compose examples be better in a (wiki) doc, or in actual example docker-compose.yml files. The advantage being that as files we may actually consider them code and keep them tested and up to date.
That being said traefik is nice. I personally am using caddy which is another a lightweight reverse proxy that auto-configs TLS, but only because I have not figured out why nginx is not happy in my local dev environment.
@rodriguezny @Yannick243 @Shadow243 @josaphatim @kroky any wisdom?
Sure, why not add the example traefik setup to a wiki page and later organize the docker documentation better - once we have an official docker image, docker-compose files, etc. can be shared as examples or distributed in specific folder here in the repo.
Also worth looking at: https://frankenphp.dev/
@GuillaumeLazar
Can you please review now that we have an official and revamped Docker? https://hub.docker.com/r/cypht/cypht
Thanks!
🗣 Suggestion
I saw the the issue #142 and the wiki page https://github.com/cypht-org/cypht/wiki/Reverse-Proxy-with-NGINX but I found nothing about the traefik reverse proxy.
After playing with the cypht docker image + traefik reverse proxy, I would like to share some instructions for the newcomers. It's really fast to deploy cypht with
https
on a sub-domain with the docker image + traefik.This
docker-compose.yml
is :http
port 80 on the hostConfigure a DNS entry to redirect
mydomain.com
and*.mydomain.com
to your server ip addressCreate the file
docker-compose.yml
and updatemydomain
andpassword
fields:volumes: traefik_acme: traefik_logs: cypht_users: cypht_db: