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