chevereto / docker

Template project for deploying Chevereto V4 based applications using Docker
https://v4-docs.chevereto.com/guides/docker/
MIT License
59 stars 18 forks source link

chevereto show deploy complete but can't visit site #76

Closed aylwynlake closed 1 month ago

aylwynlake commented 1 month ago

I follow docker guide to deploy chevereto on my macos ventura.

It shows when i run make deploy:

      Hagan la clave, hagan la clave!   (_/(_/
----------------------------------------------------
Protocol https (:443)
@URL https://test-chevereto.com/
Login details
--
Email: xxx@gmail.com
Password: ******

But I can't visit https://test-chevereto.com/


And the log from container chevereto-4.1_php shows:

2024-07-23 16:09:11 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.22.0.3. Set the 'ServerName' directive globally to suppress this message
2024-07-23 16:09:11 [Tue Jul 23 08:09:11.928025 2024] [ssl:warn] [pid 1] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior
2024-07-23 16:09:11 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.22.0.3. Set the 'ServerName' directive globally to suppress this message
2024-07-23 16:09:11 [Tue Jul 23 08:09:11.943476 2024] [ssl:warn] [pid 1] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior
2024-07-23 16:09:11 [Tue Jul 23 08:09:11.945148 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.59 (Debian) OpenSSL/3.0.11 configured -- resuming normal operations
2024-07-23 16:09:11 [Tue Jul 23 08:09:11.945163 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

The log stop at Command line: 'apache2 -D FOREGROUND'

And the log of chevereto-4.1_database container seems success. It shows [Note] mariadbd: ready for connections.

So what is wrong?

rodber commented 1 month ago

So what is wrong?

This project default instructions are for production systems exposed to the internet. It is designed to spawn a nginx proxy taking charge of port 80 and 443 and it expects having a valid domain name and a IP exposed to the internet to do the automatic https stuff. This project default application is to be used as a provision for multiple Chevereto instances on the same machine and to achieve that it takes charge of several systems.

If you aren't using a real domain neither exposing it to the internet then you need to set PROTOCOL=http at the .env file (or pass that option on the command).

Chances are you are doing local development and you may not want to get this project to take charge of ports 80 and 443, for these cases refer to DEV.md where you don't use "deploy" but "up-d".

You can also check PURE DOCKER for a more flexible runtime for your needs.

aylwynlake commented 1 month ago

Thank you very much. DEV.md works. I would like to create an image sharing website and found this chevereto. But haven't learned php. Lots of things to learn.