Closed rasodu closed 8 years ago
Installation stpes:
1) Remove vendor directory if it exist : rm -r vendor
2) Get DLEMP files
mkdir vendor && docker run --rm -v /c/Users/<user-name>/php-projects/<project-name>/vendor:/app/vendor composer/composer require rasodu/dlemp:dev-master
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/rasodu/DLEMP"
}
],
"require": {
"rasodu/dlemp": "dev-master"
}
}
docker run --rm -v /c/Users/<user-name>/php-projects/DLEMP-composer:/app composer/composer install
3) mkdir public
4) mkdir -p docker/docker-config && cp vendor/rasodu/dlemp/docker/docker-config/letsencrypt-cli.ini docker/docker-config/
5) Only if you want to deploy(Optional): Set email and domain in 'letsencrypt-cli.ini'
6) cp vendor/rasodu/dlemp/*.yml . && cp vendor/rasodu/dlemp/.env . && cp vendor/rasodu/dlemp/.dockerignore .
7) Uncomment line 'vendor/rasodu/dlemp/' and comment out line 'DLEMP_BASE_DIR=' in '.env' file.
8) Only if using docker 1.10 or before. Otherwise variable value will be read from '.env' file.
unset DLEMP_BASE_DIR
export DLEMP_BASE_DIR=vendor/rasodu/dlemp/
echo $DLEMP_BASE_DIR
Try to solve issue #2