From f0305748944fc1921a9f869d916a7c7c65a6f2d3 Mon Sep 17 00:00:00 2001 From: Aayush Neupane Date: Thu, 6 Oct 2022 21:01:15 +0545 Subject: [PATCH] Add docker-compose-deploy.yml --- .github/workflows/dockerhub.yml | 2 +- docker-compose-deploy.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docker-compose-deploy.yml diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 62d0ac2..2fb9de0 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -50,7 +50,7 @@ jobs: - name: Build and push Docker image for nginx uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: - context: . + context: ./nginx push: true tags: ${{ steps.nginx-meta.outputs.tags }} labels: ${{ steps.nginx-meta.outputs.labels }} diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml new file mode 100644 index 0000000..0ea2836 --- /dev/null +++ b/docker-compose-deploy.yml @@ -0,0 +1,17 @@ +services: + app: + image: atomics42/certification_system-app:latest + ports: + - "8000:8000" + volumes: + - /var/database/locus_certification_system:/app/db + - /var/www/static:/app/static + + nginx: + image: atomics42/certification_system-nginx:latest + ports: + - "80:80" + depends_on: + - app + volumes: + - /var/www/static:/static \ No newline at end of file