This commit is contained in:
Andrey Kondratev
2025-08-29 12:04:54 +05:00
parent dc757f92ac
commit 5d6c4a8971
2 changed files with 8 additions and 4 deletions

View File

@@ -111,9 +111,6 @@ jobs:
# Pull latest image
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
# Set environment variables for production deployment
echo "APP_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> .env.docker
# Deploy with zero downtime using production override
docker-compose -f docker-compose.yml -f docker-compose.prod.yml --env-file .env.docker pull
@@ -125,4 +122,4 @@ jobs:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml --env-file .env.docker up -d
# Cleanup old images
docker image prune -f
docker image prune -f

View File

@@ -70,6 +70,13 @@ services:
- PORT=3000
- DATABASE_URL=postgresql://${POSTGRES_USER:-quixotic}:${POSTGRES_PASSWORD:-quixotic123}@postgres:5432/${POSTGRES_DB:-quixotic}
- DATABASE_SSL=false
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
- DOMAIN=${DOMAIN}
- ACME_EMAIL=${ACME_EMAIL}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- downloads:/app/downloads
labels: