PrestaShop

Nền tảng thương mại điện tử mã nguồn mở để xây dựng và quản lý cửa hàng trực tuyến.

Truy cập trình cài đặt

Mở trình duyệt của bạn và truy cập vào: http://<SERVER_IP>:8080/install

You must complete the web installer immediately.

Database information:

  • Database server address: mysql
  • Tên cơ sở dữ liệu: prestashop
  • Người dùng cơ sở dữ liệu: root
  • Mật khẩu cơ sở dữ liệu: được lưu trữ trong /root/prestashop/docker-compose.yml (variables MYSQL_ROOT_PASSWORD / DB_PASSWD)

After the installer finishes successfully, you must secure the installation.

Remove the installer directory:

docker exec -i prestashop rm -rf install

Access the Admin Panel

PrestaShop renames the admin directory automatically.

Find admin directory name:

docker exec prestashop ls -1 | grep admin | grep -v admin-api

Example output: admin123abc

Mở trong trình duyệt của bạn: http://<SERVER_IP>:8080/<admin_directory>

Log in using the admin account created during setup.

Các tập tin và thư mục quan trọng

  • Thư mục ứng dụng: /root/prestashop
  • Tệp Docker Compose: /root/prestashop/docker-compose.yml
  • Persistent PrestaShop data (Docker volume): /var/lib/docker/volumes/prestashop_psdata/_data
  • MySQL data (Docker volume): /var/lib/docker/volumes/prestashop_dbdata/_data
  • Custom modules (bind-mounted): /root/prestashop/modules/
  • Custom themes (bind-mounted): /root/prestashop/themes/

Managing the PrestaShop Containers

Kiểm tra trạng thái container:

docker compose -f /root/prestashop/docker-compose.yml ps

Xem nhật ký:

docker compose -f /root/prestashop/docker-compose.yml logs -f

Khởi động lại các dịch vụ:

docker compose -f /root/prestashop/docker-compose.yml restart

Bắt đầu dịch vụ:

docker compose -f /root/prestashop/docker-compose.yml up -d

Thông tin ứng dụng