Skip to content

Colonizator1/dle-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataLife Engine Nginx+PHP-fpm + Docker

It's docker for old legacy project with CMS DataLife Engine v.13.2 with php 5.6 Create

Installing DB

  1. Enter db container docker exec -it db bash
  2. mysql -u root -p"password"
  3. create database exampledb character set utf8 collate utf8_bin;
  4. grant all privileges on exampledb.* to exampleuser@'%' identified by 'exampleuser_password';

For restoring db:

  1. paste your dump.sql into db/data/backup folder
  2. Enter db container docker exec -it db bash
  3. mysql -u exampleuser -p"exampleuser_password"
  4. use exampledb
  5. source /var/lib/mysql/backup/dump.sql

Nginx

  1. Make copy from etc/nginx/conf.d/example.conf (name should be like *.conf) and change server_name for your domain name.
  2. restart nginx: docker exec -it nginx nginx -s reload

Install DLE

  1. Copy paste dle files into app folder
  2. Rename db connection localhost to "db" (name of your docker service) in the app/engine/data/dbconfig.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published