Giter Site home page Giter Site logo

Comments (6)

francescou avatar francescou commented on July 19, 2024

Hi, could you please provide me an example of docker-compose.yml file to reproduce the issue?

is this related to #50 ?

from docker-compose-ui.

centralafricabaptistcollege avatar centralafricabaptistcollege commented on July 19, 2024

In a way the it's related, but I'm not sure if it's completely related since the issue isn't that the volumes are being mounted wrong (like #50) its just that the wrong volume information isn't being updated, if that makes sense. As a result of #50 I decided to mount just the two volumes below. However they were both showing up as mounted. I'll try your fix to #50 and report back if it solves it. Thanks for the quick response.

  nginx:
    build: ./.docker/NGINX
    image: nginx.company.org 
    container_name: company.org
    restart: always
    environment:
        - VIRTUAL_HOST=company.org
        - DB_PORT_3306_TCP_ADDR=172.17.0.1
        - DB_ENV_MYSQL_USER=user
        - DB_ENV_MYSQL_DATABASE=database
        - DB_ENV_MYSQL_PASSWORD=password
    ports:
    - 80
    volumes:
        - ./code:/var/www/html/
        - data:/var/www/data:Z```

from docker-compose-ui.

centralafricabaptistcollege avatar centralafricabaptistcollege commented on July 19, 2024

So I changed it to

- ${PWD}/code:/var/www/html/ - data:/var/www/data:Z

However, even though there is nothing in the compose file saying config.php if I push up on the docker-compose gui it only creates an empty config.php directory (!) under /var/www/html. Even though there are files in /code. If I do it via the terminal it works fine. I'm just trying to figure out where it's pulling the config.php directive from since I've deleted it from the docker-compose.yml

from docker-compose-ui.

centralafricabaptistcollege avatar centralafricabaptistcollege commented on July 19, 2024

So I found something very odd. I wonder if it's an issue with the volume driver or something. I logged into the docker_compose_ui container and went to the directory containing my project repo. I opened the file in vim and it was displaying properly. However, when I ran cat on the file, it was showing a very old version of the file, which corresponded to the wrong settings I was seeing. I'm not familiar to seeing this issue with other docker images, but wonder if it might be unrelated to the docker_compose_ui. You ever seen it before?

from docker-compose-ui.

centralafricabaptistcollege avatar centralafricabaptistcollege commented on July 19, 2024

So, for now what I did was actually just setup the python server from your docker file on my machine and run it that way. It bypasses all the path issues and file saving problems. It also has the benefit of being significantly faster. Conceptually I actually prefer this model as I'm hoping to use this to control my server running a number of different containers. If my docker controller is hosted on docker and docker is down I won't be able to utilize it and will lose most of the benefits of it. Obviously that's an individual choice, but I think for now I will go do this path and see how it goes.

Thanks so much for the awesome project. I had ideas of building an basic app to do essentially what this done. Glad to have been able to find this.

from docker-compose-ui.

francescou avatar francescou commented on July 19, 2024

I don't think I ever had this kind of issue..you can try to execute a docker-compose down to remove previous container instances.

I'm not sure if this can help you...but I always put a slash character after the directory name, e.g.:

- ${PWD}/code/:/var/www/html/ - data/:/var/www/data/

thank you for your contribution

from docker-compose-ui.

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.