Unable to set up Joomla Docker container

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Vlad17
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Mar 14, 2013 4:03 pm

Unable to set up Joomla Docker container

Post by Vlad17 » Sat Aug 04, 2018 6:29 pm

Hi all,

I'm trying to run a Docker container with the Joomla image tagged 3.8.11-php7.1-fpm.

I'm on Windows 10 Home with a DockerToolbox bundle. I've done a stack.yml file and run it with "docker-compose -f stack.yml up".

version: '3'

services:
joomla:
image: joomla:3.8.11-php7.1-fpm
restart: always
links:
- db:mysql
ports:
- 8080:80
environment:
JOOMLA_DB_HOST: db
JOOMLA_DB_PASSWORD: MySQLRootPass

db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: MySQLRootPass
ports:
- 3306:3306

I'm new with Docker so please be patient :)).

What I can see in a terminal is (don't know how to align columns here):

$ docker ps
CONTAINER ID IMAGE PORTS NAMES
37163cb2b2b1 joomla:3.8.11-php7.1-fpm 9000/tcp, 0.0.0.0:8080->80/tcp dockertoolbox_joomla_1
83133a2e9086 mysql:5.7 0.0.0.0:3306->3306/tcp dockertoolbox_db_1
cbfb0b12476e joomla:latest 0.0.0.0:32768->80/tcp joomla-2
89aea591357c phpmyadmin/phpmyadmin 9000/tcp, 0.0.0.0:8888->80/tcp phpmyadmin
cf1d8ec688ea mysql:5.7 3306/tcp db

joomla-2 was pulled from a joomla official library on the docker hub using the Kitematic GUI tool. And it's opening in my PC browser by URL http://192.168.99.100:32768 offering to start installation which is successful when proceeding.

As well as phpmyadmin is opening by http://192.168.99.100:8888 with successful root login.

But the container dockertoolbox_joomla_1 with the image joomla:3.8.11-php7.1-fpm linked to dockertoolbox_db_1 is not opening by http://192.168.99.100:8080 giving Page Unavailable Error.

Any ideas? Actually I would be happy running this container on a port assigned automatically like 32768 above instead of 8080.

Thanks

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44071
Joined: Sat Apr 05, 2008 9:58 pm

Re: Unable to set up Joomla Docker container

Post by Webdongle » Sat Aug 04, 2018 6:40 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

GregJPreece
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Wed Jan 02, 2019 5:42 pm

Re: Unable to set up Joomla Docker container

Post by GregJPreece » Wed Jan 02, 2019 5:53 pm

"Use something else" is always the least helpful and most frustrating response, please don't do that.

The answer is that the PHP-FPM containers do not feature a web server. I just tried setting up myself using the 3.9.1-php7.3-fpm tag, and there's no web server in there. In the case of PHP-FPM this is consistent with the Docker principle of "one process per container".

You will either need to make an additional container with a web server in it and link it to the PHP-FPM instance yourself, or (much easier for simple development) switch to a version that contains a web server. Removing the tag altogether and just running the "joomla" image, for example, will give you the latest Joomla preconfigured on Apache2.

I know it's been a few months since this was originally posted but I hope that helps someone out.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44071
Joined: Sat Apr 05, 2008 9:58 pm

Re: Unable to set up Joomla Docker container

Post by Webdongle » Wed Jan 02, 2019 6:59 pm

OK
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Installation Joomla! 3.x”