Giter Club home page Giter Club logo

Comments (6)

francescou avatar francescou commented on August 16, 2024

Hi, I guess the issue is caused by the relative path .:/usr/src/app

you could use workarounds discussed in #6 #49 and #50

from docker-compose-ui.

enko avatar enko commented on August 16, 2024

I tried setting ${PWD} instead of ., but this does not work. I'm getting this exception:

ERROR: for api  Cannot create container for service api: create .: "." includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed
Traceback (most recent call last):
  File "/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/app/scripts/requires_auth.py", line 54, in decorated
    return func(*args, **kwargs)
  File "/app/main.py", line 197, in up_
    do_build=do_build)
  File "/env/lib/python2.7/site-packages/compose/project.py", line 404, in up
    'Encountered errors while bringing up the project.'
ProjectError

The compose file looks like this:

version: "2"
services:
  api:
    build: .
    command: "npm -s start"
    environment:
      - NODE_ENV=development
    volumes:
        - ${PWD}:/usr/src/app

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

you'll have to override the PWD env, e.g.

docker run --name docker-compose-ui -p 5000:5000 -e PWD=/projects/ -v /projects/:/opt/docker-compose-projects/ -v /var/run/docker.sock:/var/run/docker.sock francescou/docker-compose-ui

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

Hi @enko did you solve the issue?

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

I am closing the issue for now, feel free to reopen if necessary

from docker-compose-ui.

enko avatar enko commented on August 16, 2024

Sorry to answer so late. I create an env file via CI which sets PWD which does everything right.

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.