Problems when using compose way of running

We have monorepo where mini-app folder is for nextjs project and backend is fast-api project we tried to use sing le top level docker-compose but we were getting errors, then we tried to refer separate Dockerfiles inside directories in our top level docker-compose Dockerfiles were using nixpacks, but it was failing cause nixpacks command not found, though on our server we installed nixpacks image and also then tried to install it on our linux os the last try was to run frontend with Dockerfile that uses node image instead of nixpacks but we again got infinite npm install command, it was using some strange node:8 or node:7 and complaining about CommonJs,
No description
11 Replies
👾Rnbsov
👾RnbsovOP6mo ago
you can look at our docker compose with separate dockerfiles https://github.com/Rnbsov/decentrathon-2.0/tree/d6c09e2a13e1597d130e9b03df85eb0e2170d3de
GitHub
GitHub - Rnbsov/decentrathon-2.0 at d6c09e2a13e1597d130e9b03df85eb0...
Contribute to Rnbsov/decentrathon-2.0 development by creating an account on GitHub.
Siumauricio
Siumauricio6mo ago
are you using turborepo by any chance?
Siumauricio
Siumauricio6mo ago
Node | Nixpacks
App source + Nix packages + Docker = Image
👾Rnbsov
👾RnbsovOP6mo ago
nope
Siumauricio
Siumauricio6mo ago
are you using dockerfiles? or what monorepo tool are you using?
👾Rnbsov
👾RnbsovOP6mo ago
I've created top level docker-compose.yml that reference the respective Dockerfiles in directories like backend/ and frontend/ these dockerfiles were using railway/nixpacks images but it was failed to run
Siumauricio
Siumauricio6mo ago
hmm it should work anyways why not use directly nixpacks from dokploy
👾Rnbsov
👾RnbsovOP6mo ago
you mean as a separate services? I don't know why compose way of deploying is not working for us but if we deploy them as separate services, they work
Siumauricio
Siumauricio6mo ago
try to deploy the docker compose in your machine and see if its works
👾Rnbsov
👾RnbsovOP6mo ago
okay

Did you find this page helpful?