Merge pull request #1 from JscorpTech/prod

Prod
This commit is contained in:
Samandar Azamov
2025-04-19 15:55:13 +05:00
committed by GitHub
2 changed files with 25 additions and 1 deletions

24
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Auto Deploy to Self-Hosted
on:
push:
branches:
- prod
jobs:
deploy:
runs-on: self-hosted
steps:
- name: 🔄 Kodni olish
uses: actions/checkout@v4
- name: 📥 Secret orqali .env fayl yaratish
run: |
echo "${{ secrets.BASE_ENV_FILE }}" > .env
echo "${{ secrets.AUTH_ENV_FILE }}" > ./auth/.env
- name: 🛠 Docker Compose bilan build & deploy
run: |
docker compose down
docker compose --profile auth --profile payment up -d --build

View File

@@ -15,7 +15,7 @@ services:
- "--entrypoints.web.address=:80"
- "--providers.docker.exposedbydefault=false"
ports:
- "80:80"
- "${PORT-84}:80"
- "8080:8080" # Dashboard uchun
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"