bilde2910 / Hauk

Open-source realtime location sharing
Apache License 2.0
589 stars 59 forks source link

Apache could not reliably determine the server's fully qualified domain name in docker image #205

Open aasami opened 7 months ago

aasami commented 7 months ago

I'm unable to run docker image:

# docker compose up
[+] Running 1/0
 ✔ Container hauk  Created                                                                                                                                                        0.0s 
Attaching to hauk
hauk  | Started
hauk  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
hauk  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
hauk  | [Sat Feb 17 19:56:57.517619 2024] [mpm_prefork:notice] [pid 10] AH00163: Apache/2.4.57 (Debian) PHP/8.2.8 configured -- resuming normal operations
hauk  | [Sat Feb 17 19:56:57.517711 2024] [core:notice] [pid 10] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND

And when I check running services, nothing is listening on port 80. Even when I try to run it like this:

# docker run -h hauk.mydomain.com bilde2910/hauk
Started
[Sat Feb 17 20:06:32.970414 2024] [mpm_prefork:notice] [pid 25] AH00163: Apache/2.4.57 (Debian) PHP/8.2.8 configured -- resuming normal operations
[Sat Feb 17 20:06:32.970491 2024] [core:notice] [pid 25] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'

Nothing is listening on port 80. I'm kinda new to docker and don't know how to troubleshoot this. What can I do about this issue? The readme and docs don't cover this. Thank you

CataIana commented 7 months ago

Hi, I get this as well, but it still works fine, I would just ignore it. Just make sure you set your domain at the bottom of the config.