Sunday, April 29, 2018

AWS Docker Joomla

Docker does have an official Joomla image
https://hub.docker.com/_/joomla/

docker pull joomla 

Remove all docker processes

docker rm -f $(docker ps -aq)

Joomla does not support mysql 8.0 yet

docker run --name joomla_db -d -e MYSQL_ROOT_PASSWORD=password mysql:5.6


docker run --name joomla_website --link joomla_db:mysql -d -p 8080:80 joomla

Open up a bash cmd console
docker exec -it joomla_website bash

Akeeba Backup
https://www.siteground.com/tutorials/joomla/akeeba-backup/

Install Docker on AWS AMI
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

...
Create a docker image

docker run -i -t <Image_ID> /bin/bash
[Configuration / Copy & Paste]
exit

docker ps -a
docker commit <Container ID> <REPOSITORY>

Push to Docker hub
docker tag <Image Id> <User Name>/<repo>:<tag>
docker push <User Name>/<repo>:<tag>

Docker does not persistent /var/www/html/ when committing the container.


No comments:

Post a Comment