Prestashop LAMP with Mariadb + Webmin + PhpMyadmin
1.2K
Docker Prestashop vlatest/v8.0.4-8.1/v1.7.8.9/v1.7.8.5, with Mariadb-Apache-PhP + MyPhP + WebMin
-> To install prestashop specific version, Edit docker file and comment/uncomment any of this lines :
# FROM prestashop/prestashop:latest
# FROM prestashop/prestashop:8.0.4-8.1
FROM prestashop/prestashop:1.7.8.9
# FROM prestashop/prestashop:1.7.8.5
-> PHP my admin login
link : ip-address/phpmyadmin/
username : psuser
password : admin
-> To change phpmyadmin db user and login details:
edit in Dockerfile -
RUN service mariadb start && mysql -uroot mysql -e "CREATE USER 'psuser'@localhost IDENTIFIED BY 'admin';GRANT ALL PRIVILEGES ON . TO 'psuser'@localhost IDENTIFIED BY 'admin';FLUSH PRIVILEGES;"
and edit / config.inc.php
-> WebMin login
link : ip-address/8080
username : root
password : admin
-> To change Webmin login
edit in Dockerfile -
ENV WEBMIN_PASS=admin
-> To access prestashop
link : ip-address/
-> To access prestashop backoffice
link : ip-address/adminps
-> Get image
docker pull tsehla/prestashop:latest
docker run -d -p80:80 -p 8080:10000 --name prestashop-container tsehla/prestashop:latest
-> prestashop install configuration
database link
127.0.0.1
database user
psuser
database password
admin
after installing prestashop and before accessing webmin do :
docker exec -ti prestashop-container rm -rf /var/www/html/install
docker exec -ti prestashop-container mv /var/www/html/admin /var/www/html/adminps
docker commit prestashop-container tsehla/prestashop:latest
-> Prestashop backoffice issues on some prestashop version
ip-address/phpmyadmin/
-- login and select database the prestashop is using, then run my sql code
UPDATE ps_configuration SET `value`=0 WHERE `name`="PS_COOKIE_CHECKIP";
--** By the way – This is just a setting from Administration > Preferences menu which we are modifying via SQL because our BackOffice connection is broken and this value won’t be saved from admin panel.
-> this is used by my project that auto manages products and stock using webservices, so ignore or comment out, im leaving it here to make things easier for me during deployment
--Copy PrestaShop webservice management
COPY eeza-prestashop-api/. /var/www/html/
-> prestashop free themes, im leaving it here for my convininence, im not sure about copyright thought, so read their usage policies probably contained in them
prestashop-theme/
-> docker commands
-- see all active docker containers
docker ps -a
-- stop docker containe of Container-ID
docker stop Container-ID
-- start docker of Container-ID
docker start Container-ID
-- remove container of Container-ID
docker rm Container-ID
-- see all images
docker images
-- remove image of Image-ID
docker rmi Image-ID
-- force remove image of Image-ID
docker rmi -f Image-ID
-- build image from docker file in current directory
docker build -t .
-- build image from docker file in current directory with image name Image-Name
docker build -t Image-Name .
-- run image of Image-Name on port 80 of server and link it to port 81 of a service in docker container/image
docker run -p 80:81 Image-Name
-- run image of Image-Name on port 80 of server and link it to port 81 of a service in docker container/image, give container name of Container-Name
docker run -p 80:81 --name Container-Name Image-Name
-- run image of Image-Name on port 80 of server and link it to port 81 of a service in docker container/image, give container name of Container-Name, and have docker process/console detached
docker run -d -p 80:81 --name Container-Name Image-Name
-> Dockerfile github repository
https://github.com/Tsehla/prestashop-LAMP-phpMyAdmin-WebMin
Content type
Image
Digest
sha256:6061f3ac8…
Size
534.1 MB
Last updated
over 3 years ago
docker pull tsehla/prestashop