Coder Social home page Coder Social logo

Comments (4)

degobbis avatar degobbis commented on July 30, 2024

Hi,
since you are using the 2.0.0-dev Branch, you can use this solution:
Copy everything in the ./data directory to the directory of your choice.
Change the value in the .env of APP_BASEDIR and enter the absolute path to the directory where you copied the files.
Start the server and everything should work.

You can also copy the .env there, then you have to change to this directory in the terminal and start the docker-lamp server from there using the absolute path.

Example:
The docker-lamp git clone is located in /opt/git/docker-lamp.
You copied everything from /opt/git/docker-lamp/data to /home/$USER/html.
Also in /home/$USER/html now comes the .env.
APP_BASEDIR would then be APP_BASEDIR="/home/$USER/html".
Now change to /home/$USER/html with cd /home/$USER/html and execute the command /opt/git/docker-lamp/docker-lamp start from there.

from docker-lamp.

pjdevries avatar pjdevries commented on July 30, 2024

Hi Guido,

Yes I'm using the 2.0.0-dev Branch. Apologies for not mentioning that explicitly in all my posts.

Although I was looking for relocation of individual sub directories of ./data, this approach seems to be a useful alternative. The main advantage is separation of docker-lamp specific and none specific data, so I will definitely do that. However, I would still like to separate the www directory from the rest. Is there a way to achieve that as well?

from docker-lamp.

degobbis avatar degobbis commented on July 30, 2024

This would only be possible if you adjust all configuration files, because the path is always expected inside the container in /srv/www.

So all PHP yml, the Apache yml and all vHosts would have to be adjusted.

You can do this via overrides in ./data, but side effects are not excluded.

Anyway, I would not recommend you to do that.

from docker-lamp.

pjdevries avatar pjdevries commented on July 30, 2024

I already have my own separate branch in my forked repo, so I don't mind some additional customizing :) I'll look into it, to see if I can make it parameterizable, and if it becomes to messy and cumbersome, at least you explained me the alternative. Thanx for that.

from docker-lamp.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.