Git Product home page Git Product logo

Comments (3)

TrafeX avatar TrafeX commented on July 23, 2024

Hi @franciscof5 ,

It's because the WordPress source is on a different location than the wp-content folder. That makes it possible to update WordPress in this container without affecting the things that live in in wp-content.
I don't know why this is an issue for uploading files. It works on the WordPress websites where I'm using this Docker container.
How are you uploading the files?

from docker-wordpress.

franciscof5 avatar franciscof5 commented on July 23, 2024

I think if you try an to use the image instead of building the project it will not work properly (I am running multiples wp, so it safe a lot of disk space), for me I have to set the volume as an absolute path:

image: trafex/wordpress
volumes:
  - /var/www/PATH/PATH/wp-content:/var/www/wp-content

from docker-wordpress.

TrafeX avatar TrafeX commented on July 23, 2024

The absolute path you use in the docker compose config doesn't have anything to do with the ABSPATH constant.
In docker compose you can use a relative path, but when you use Docker directly it always requires an absolute path.

from docker-wordpress.

Related Issues (20)

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.