Skip to content

Commit

Permalink
Add docker-compose-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Atomnp committed Oct 6, 2022
1 parent d34bdfc commit f030574
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
17 changes: 17 additions & 0 deletions docker-compose-deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f030574

Please sign in to comment.