From d7bc09ba9ae7a01bf0a21c9e790c594e6e96a6e2 Mon Sep 17 00:00:00 2001 From: AthulyaMS Date: Thu, 18 Jul 2024 09:47:30 +0530 Subject: [PATCH] seperate docker compose file in staging and production for backup --- .github/workflows/deploy.yml | 2 +- .github/workflows/deploy_release.yml | 2 +- docker/docker-compose-production.yml | 0 docker/{docker-compose.yml => docker-compose-staging.yml} | 0 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 docker/docker-compose-production.yml rename docker/{docker-compose.yml => docker-compose-staging.yml} (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 77fe8b96c..cc9b8e44e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,4 +21,4 @@ jobs: cd /home/gitautodeploy/vachan-api git pull origin version-2 cd docker - docker compose --profile deployment --env-file prod.env up --force-recreate --build -d + docker compose -f docker-compose-staging.yml --profile deployment --env-file prod.env up --force-recreate --build -d diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml index 3b9b2a7a6..79a4f6955 100644 --- a/.github/workflows/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -54,4 +54,4 @@ jobs: cd /home/vachanstaging/vachan-api git pull origin version-2 cd docker - docker compose --profile deployment --env-file prod.env up --force-recreate --build -d + docker compose -f docker-compose-production.yml --profile deployment --env-file prod.env up --force-recreate --build -d diff --git a/docker/docker-compose-production.yml b/docker/docker-compose-production.yml new file mode 100644 index 000000000..e69de29bb diff --git a/docker/docker-compose.yml b/docker/docker-compose-staging.yml similarity index 100% rename from docker/docker-compose.yml rename to docker/docker-compose-staging.yml