Git Product home page Git Product logo

Comments (6)

albrechtsimon avatar albrechtsimon commented on July 19, 2024 1

The OctoberCMS files get added to the image during build. See the Dockerfile. Volume mounts are created when launching a container. As far as I know, mounts are directed from host system towards container system, which in turn means that if your directory on the host system is empty when it gets mounted, it will be empty within your container as well.

from docker-octobercms.

petehalverson avatar petehalverson commented on July 19, 2024

@albrechtsimon, that's correct. The October CMS files exist in the image. I typically create volume bind mounts for those folders I'm working on. Here's an example from a typical project:

#docker-compose.yml
version: '2.3'
services:
  web:
    image: aspendigital/octobercms:latest
    init: true
    ports:
      - 80:80
    environment:
      - TZ=${TZ:-America/Denver}
    volumes:
      # A local `.env` is not required but expected if you wish to override config values
      # - ./.env:/var/www/html/.env

      - ./plugins:/var/www/html/plugins
      - ./storage/app:/var/www/html/storage/app
      - ./storage/logs:/var/www/html/storage/logs

      # Uncomment the line below for a persistent local database
      # - ./storage/database.sqlite:/var/www/html/storage/database.sqlite

      - ./themes:/var/www/html/themes

@edDimensi, I noticed your example uses docker-compose version 3 which handles volumes differently. I have stuck with version 2.x as it matches my workflow. See more about the difference: docker/compose#4675

from docker-octobercms.

petehalverson avatar petehalverson commented on July 19, 2024

@edDimensi, apologies for not seeing this issue sooner. Closing now...please let me know if you have any more trouble or if you'd like to offer some additional feedback.

Thanks!

from docker-octobercms.

dimensi avatar dimensi commented on July 19, 2024

@petehalverson i anyway can't understand how copy files from container to host for development?

from docker-octobercms.

dimensi avatar dimensi commented on July 19, 2024

@petehalverson i can't understand how fix permissions issue. If i try copy you config and open localhost, i got error about "not exists system.log file", if i create systel.log file i got permission denied

from docker-octobercms.

petehalverson avatar petehalverson commented on July 19, 2024

The October CMS Slack #docker channel would be a better forum to discuss.

@dimensi, it's not clear to me what you're trying to do.

You can mount a local volume as described above, log in to the container, and copy them via command line.

from docker-octobercms.

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.