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.
Post Reply
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: 35248
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
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein


Post Reply

Return to “Installation Joomla! 3.x”