GithubHelp home page GithubHelp logo

Comments (7)

moeenaslam avatar moeenaslam commented on May 18, 2024 1

You have to run it with docker compose instead of docker-compose. To run, use docker compose up.
This project uses docker compose V2 and I can say that if you execute docker-compose -v, it will show you version 1.xx.xx whereas now docker comes with compose v2.

from linkwarden.

axsddlr avatar axsddlr commented on May 18, 2024

+1 to this

from linkwarden.

burkely-00orso69 avatar burkely-00orso69 commented on May 18, 2024

same unfotunately...

from linkwarden.

nevertomorrow avatar nevertomorrow commented on May 18, 2024

@moeenaslam Thanks for the suggestion. However, I don't think it is working on my end even if I switched to docker compose.
Here's what I've done.

$ mkdir -p ~/.docker/cli-plugins/
$ curl -SL https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
$ chmod +x ~/.docker/cli-plugins/docker-compose

Then I made a quick test

$ docker-compose version
docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.8.10
OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020

$ docker compose version
Docker Compose version v2.6.1

Started with docker compose

$ cd link-warden/
$ docker compose up -d
[+] Running 4/4
 ⠿ Network link-warden_default              Created                                                                0.1s
 ⠿ Container link-warden-mongo-1            Started                                                                0.4s
 ⠿ Container link-warden-link-warden-api-1  Started                                                                0.7s
 ⠿ Container link-warden-link-warden-1      Started                                                                1.0s

However, it was still with same issue

$ docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED         STATUS                          PORTS                                                                                                                                                                       NAMES
62068e10300c   link-warden_link-warden        "docker-entrypoint.s…"   8 seconds ago   Restarting (127) 1 second ago                                                                                                                                                                               link-warden-link-warden-1
db5808576db5   link-warden_link-warden-api    "docker-entrypoint.s…"   8 seconds ago   Restarting (1) 1 second ago                                                                                                                                                                                 link-warden-link-warden-api-1

The error logs are the same as I pasted previously.

from linkwarden.

nevertomorrow avatar nevertomorrow commented on May 18, 2024

Ok, I made a fresh start by deleting all the existing images + git folder

I used docker compose up -d this time and it's working as expected.

One more thing I should mention is I also tried to use Dockerfile.prod as Dockerfile and it's not working for link-warden_link-warden
link-warden_link-warden is still restarting with error in log:

/docker-entrypoint.sh: exec: line 38: npm: not found

I did noticed a few warnings during build, unfortunately, I didn't capture all of them as they rolled over quickly.

=> => # found 0 vulnerabilities
 => => # npm WARN EBADENGINE Unsupported engine {
 => => # npm WARN EBADENGINE   package: '[email protected]',
 => => # npm WARN EBADENGINE   required: { npm: 'please-use-yarn', yarn: '>= 1.19.1' },
 => => # npm WARN EBADENGINE   current: { node: 'v18.4.0', npm: '8.14.0' }
 => => # npm WARN EBADENGINE }

 => => # npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
 => => # npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.

  => => # To address all issues (including breaking changes), run:
 => => #   npm audit fix --force
 => => # Run `npm audit` for details.
 => => # > [email protected] build
 => => # > react-scripts build

Using the default Dockerfile (dev version as mentioned in the file) is ok to make the whole app running.

@daniel31x13 Could you update your README.md to emphasize that this project should be using docker compose V2 so that the other users could avoid this issue.

Thanks all.

from linkwarden.

daniel31x13 avatar daniel31x13 commented on May 18, 2024

Hello @nevertomorrow,
Sorry to be unresponsive.
I applied the changes.

from linkwarden.

melyux avatar melyux commented on May 18, 2024

Got this error and never got the project running. Using docker compose v2. Tried deleting the images and the git folder and trying again, with no luck.

from linkwarden.

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.