TaiKamilla / DOCKER_LAMP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShopWare 6 local development environment

This guide will explain the process of installation of SW 6 on docker environment

Docker_logoDocker

We need to have docker and docker-compose on our PC

We only going to cover the steps for Linux, docker is also available on Windows and MacOs

Archlinux-icon-crystal-64 Arch/Manjaro

sudo pacman -Syu docker docker-compose

Debian_logo Debian

sudo apt-get install docker docker-compose

We need to be able to run docker as a noon root user, for that we will add our user to the docker group

sudo usermod -aG docker $USER

And we need to log out (in some cases reboot)


🚀 ​Start the docker machine

We need to clone this repository (in case you did not done that yet).

Once on the repository folder, we run

docker-compose up -d

This will build and initialize the docker environment

We should now be able to go see the installation process in here: http://localhost/ 🎉

image-20191212112718020

Now we should be ready proceed with the install.

image-20191212113736320

Setting Value
Server: mariaDB
User: root
Password: shopware
- [x] New database any_name_you_like

Configure the shop

image-20191212120156163

After that you will be promoted to install some languages and some plugins, this is up to you

Front end Back end
http://localhost/ http://localhost/admin

🛑 Stop docker

To stop docker we run

docker-compose down

In case that you need to login into the docker machine

docker-compose exec web bash

Shopware is hosted in /var/www/html

phpMyAdmin

This docker installation also provides phpMyAdmin for DB management

docker-compose up -d #Just to make sure is running

and visit http://localhost:8183/

image-20191212122240519

Setting Value
Server: mariaDB
Username: root
Password: shopware

🐛 ​Known Issues

If you need to begging again

Turn docker off

docker-compose down
docker stop $(docker ps -aq)

Delete all docker containers

docker rm $(docker ps -aq)

Delete all images

docker rmi --force $(docker images -q)

The database and the code folder might have changed user owner

This will delete those folders

sudo rm -rf database code

About


Languages

Language:CSS 45.6%Language:PHP 22.7%Language:JavaScript 15.9%Language:HTML 9.3%Language:Shell 3.7%Language:Dockerfile 2.8%