Docker version: Docker version 24.0.7, build afdd53b
Using Docker Swarm
Problem description
I tried to setup a simple test environment using your docker-compose.yml template with slight adjustments to run behind a proxy and with swarm instead of compose.
When starting the containers, the ocsinventory restarts in a loop with the following error as soon as preparation is done and it tries to start:
Full log
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/01-start.sh
+----------------------------------------------------------+
| |
| Welcome to OCS Inventory NG Management Docker! |
| |
+----------------------------------------------------------+
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-com-server.sh
+-----------------------------------------------+
| Customizing from environment variables... |
+-----------------------------------------------+
Applying Config OCS_DB_USER=ocs from environment variable
Applying Config OCS_DB_NAME=ocsweb from environment variable
Applying Config OCS_DB_PORT=3306 from environment variable
Enabling conf z-ocsinventory-server.
To activate the new configuration, you need to run:
service apache2 reload
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-web-console.sh
Enabling conf ocsinventory-reports.
To activate the new configuration, you need to run:
service apache2 reload
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-api-server.sh
Enabling conf zz-ocsinventory-restapi.
To activate the new configuration, you need to run:
service apache2 reload
/docker-entrypoint.sh: Launching /docker-entrypoint.d/99-finish.sh
+----------------------------------------------------------+
| Setting Apache Server Name to 'localhost'
+----------------------------------------------------------+
+--------------------------------+
| Removing not used files... |
+--------------------------------+
+----------------------------------------------------------+
| OK, prepare finshed ;-) |
| |
| Starting OCS Inventory NG Management Docker... |
+----------------------------------------------------------+
/docker-entrypoint.sh: Configuration complete; ready for start up
AH00526: Syntax error on line 77 of /etc/apache2/conf-enabled/z-ocsinventory-server.conf:
PerlSetEnv takes two arguments, PerlSetEnv
I opened an issue here as well, not sure which location is better, feel free to close the other: https://github.com/OCSInventory-NG/OCSInventory-Docker-Image/issues/110
General information
Docker host's operating system: Ubuntu 20.04.6 LTS
Docker information
Docker version: Docker version 24.0.7, build afdd53b Using Docker Swarm
Problem description
I tried to setup a simple test environment using your docker-compose.yml template with slight adjustments to run behind a proxy and with swarm instead of compose. When starting the containers, the ocsinventory restarts in a loop with the following error as soon as preparation is done and it tries to start:
Full log