nginx will not start listening on port 80 within the container due to an issue with a configuration file found at /config/nginx/site-confs/default:4
checking out the configuration file, the server_name value is empty
server_name ;
mounting an empty folder at /config causes error messages about missing config files.
don't know how to get nginx to ignore the /config folder and read from /etc/nginx like normal
Expected Behavior
start the container without issues
Current Behavior
nginx does not start listening on port 80 when container starts
Steps to Reproduce
download example docker-compose file
start stack and attempt to reach bookstack
Environment
OS: Centos 7
CPU architecture: x86_64
How docker service was installed: yum offical repo
Command used to create docker container (run/create/compose/screenshot)
nginx will not start listening on port 80 within the container due to an issue with a configuration file found at /config/nginx/site-confs/default:4 checking out the configuration file, the server_name value is empty
mounting an empty folder at /config causes error messages about missing config files. don't know how to get nginx to ignore the /config folder and read from /etc/nginx like normal
Expected Behavior
start the container without issues
Current Behavior
nginx does not start listening on port 80 when container starts
Steps to Reproduce
Environment
OS: Centos 7 CPU architecture: x86_64 How docker service was installed: yum offical repo
Command used to create docker container (run/create/compose/screenshot)
Docker logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[env-init] MYSQL_PASSWORD set from FILE__MYSQL_PASSWORD
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes
Brought to you by linuxserver.io
To support the app dev(s) visit:
Snipe-IT: https://snipeitapp.com/donate
To support LSIO projects visit:
https://www.linuxserver.io/donate/
GID/UID
User uid: 911
User gid: 911
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4
nginx: [emerg] invalid number of arguments in "server_name" directive in /config/nginx/site-confs/default:4