# Docker Installation

TIP

This tutorial requires you to install docker and compose locally or on the server first,https://docs.docker.com/engine/install/ (opens new window)

1.Execute git clone [email protected]:beikeshop/docker.git to pull the docker code

img

2.Execute mkdir www in the current path to create a new path

img

3.Create a configuration file based on the template file in the docker path, cp env.example .env

img

4.Modify .env and docker-compose as needed, and then execute docker compose up -d (it will take a long time to execute this command for the first time, please be patient) (The main modifications are the nginx port in .env and other ports that conflict with the host)

img

5.Put the beikeshop file in the www path

TIP

Beikeshop files can be downloaded from the official website https://beikeshop.cn/download (opens new window) or clone the source code (git clone https://gitee.com/beikeshop/beikeshop.git)

Note: If you clone the source code, please check the source code installation tutorial first:https://docs.beikeshop.com/install/source.html (opens new window)

img

6.Enter the nginx/sites path under docker, copy the default.conf file as the website configuration file, and modify it according to the actual situation.

img

Example of website configuration file under nginx/sites path:

img

7.System Installation

Step 1: Enter the installation interface

img

Step 2: Environmental Check

img

Step 3: File Permission Check

img

Step 4: Fill in the database, backend login user information and click the install button

img

Step 5: Installation Successful!

img

Mall backend interface display:

img

Mall front-end interface display:

img