Hi all, I currently fighting to have my 2 prisma d...
# orm-help
d
Hi all, I currently fighting to have my 2 prisma different projects running at the same time on the same machine because I work on both at the same time. There are 2 different\distinct projects (no sharing data or stuff like that). In my docker-compose.yml files, I changed the default name of both services(prisma, postgres) and volume to be different on each project. But when I run
docker-compose up -d
on the second project to start it, I get some error and conflict.
Copy code
docker-compose up -d
Creating volume "prisma_postgres" with default driver
WARNING: Found orphan containers (drop_db, drop-prisma) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating prisma_postgres_1 ... 
Creating prisma_prisma_1   ... error

ERROR: for prisma_prisma_1  Cannot start service prisma: driver failed programming externCreating prisma_postgres_1 ... done
3e61c908b2d6280040b1): Bind for 0.0.0.0:4466 failed: port is already allocated

ERROR: for prisma  Cannot start service prisma: driver failed programming external connectivity on endpoint prisma_prisma_1 (e343e095d8dcb4c7e508e54c4da677293e0f30d1960e3e61c908b2d6280040b1): Bind for 0.0.0.0:4466 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
So yes I think I have to change the port for one project. But even if I do that what about this
WARNING: Found orphan containers (drop_db, drop-prisma) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
?
m
You can have 2 prisma projects/services running on 1 prisma server. There’s no need to start multiple Prismas.