Skip to content
Back

How can I run multiple instances on the same virtual machine

  • 0
  • Self Hosted
  • Web
anyuru
6 Jan, 2025, 09:55

I'm trying to setup a separate testing, production and stage appwrite project on the same so that when developing the tests can run in isolation from the stage. To allow smooth setup and teardown of the testing environment. I found it wise to have three environments run in isolation that is the production, staging and testing environments. I'm facing challenges because I'm novice in docker and I'm setting all of these environments on my local machine so that I can simulate the workflow better. Therefore I need some guidance on how I can create multiple instances on the server (vm) for these environments to exist.

I've sofar created separate files for the necessary env variables i.e .env.development.local, .env.production.local and .env.testing.local and two different docker compose yaml files i.e docker-compose.dev.yml and docker-compose.test.yml. I've tried running them but get an error as bad gateway. Attached are the two docker-compose files. Any help is welcome.

TL;DR
Developers want to run multiple instances (testing, staging, production) on the same virtual machine using Docker. They have separate environment variable files and Docker compose yaml files, encountering a bad gateway error when trying to run them. Solution: Check the configurations in the Docker compose files, ensuring ports and networking are properly set up for each instance.
anyuru
6 Jan, 2025, 09:57

Those are the docker files

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more