This may be a dumb question but… let’s say I have ...
# orm-help
j
This may be a dumb question but… let’s say I have three projects locally and I want to use a Prisma setup in each one. So I have three docker-compose files, how does Docker/Prisma differentiate between them?
w
Docker creates 'volumes and images' based on your folder name, to make sure your data persists separately from those folders if the names are the same or similar without making a mess of your instance, you could change your database volume name within your docker-compose file. In the image below you change
volumes: postgres
to whatever name you want, make sure to do that when connecting the data folder to your volume too:
Copy code
volumes:
- postgres:/var/lib/postgresql/data
Here you change postgres: to the named volume, if that make sense.
j
Ah this makes the most sense, thanks man