I plan to dockerize a LAMP Stack for hosting own php code. Using the build-in lamp doesn’t work since the code I’m using relys on PHP 7.1 and UCS only supports 7.0.
My approach is to use this docker image: https://github.com/mattrayner/docker-lamp
And run it with docker run -i -t -p "80:80" -v ${PWD}/app:/app -v ${PWD}/mysql:/var/lib/mysql --restart always mattrayner/lamp:latest
But where do i config the url like ucs.my.intranet/lamp?
And how to register this to be displayed in ucs.my.intranet/univention/portal?
To have a real UCS App for a lamp stack would be great, especially with a UI in univention portal for setting the php version, php libraries like gd-lib and changing the php.ini. But after reading the docs I don’t feel like this is something I could do easily.
Disclaimer: I cannot speak for the quality of the Docker image that you linked to. My personal impression is that I would not want to use a single container that holds all of Apache, MySQL and PHP. Rather you should look at using the mysql/mariadb running on the UCS system instead.
Hey fbartels,
thank you. Ill take a look at your repos.
You are right, I do not need a container holding apache and mysql. Just a php docker image >= 7.1 would be enough. I just thought it would be easier to serve everything in one package but I think I’ll try to figgure out how I can use the ucs apache and mysql within a php docker.
I was able to use a docker with docker run -d -p "41001:443" -p "41002:80" -v $(pwd)/app:/app/myapp --restart always --name myapp webdevops/php-apache:7.3
pass it trough in /etc/apache2/sites-enabled/myapp.conf with