Skip to content

Commit

Permalink
сборка образов запуск, забыл nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGorbunov committed Jan 18, 2025
1 parent 3736f06 commit c38c45d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/drf_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} << 'EOF'
cd ${{ secrets.DEPLOY_DIR }}
docker compose down --rmi local || true
docker compose build
docker compose up -d
EOF
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@ services:
- redis
- app
- db

nginx:
container_name: nginx-proxy-server
build: ./nginx
image: ${DOCKER_HUB_USER}/cw_drf-nginx:latest
ports:
- 80:80
depends_on:
- app
volumes:
- ./static:/mysite/static

volumes:
pg_data:
Expand Down

0 comments on commit c38c45d

Please sign in to comment.