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
,
11 Replies
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.
are you using turborepo by any chance?
you can see here https://nixpacks.com/docs/providers/node#start
Node | Nixpacks
App source + Nix packages + Docker = Image
nope
are you using dockerfiles?
or what monorepo tool are you using?
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 runhere is the source code of our try with nixpacks dockerfiles
https://github.com/Rnbsov/decentrathon-2.0/commit/d6c09e2a13e1597d130e9b03df85eb0e2170d3de
hmm it should work anyways
why not use directly nixpacks from dokploy
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
try to deploy the docker compose in your machine and see if its works
okay