CI/CD
This commit is contained in:
@@ -127,6 +127,6 @@ jobs:
|
||||
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} -p ${{secrets.SERVER_SSH_PORT}}<< 'EOF'
|
||||
cd application/Ai
|
||||
git pull origin production
|
||||
docker-compose down
|
||||
docker-compose up -d
|
||||
docker-compose -f docker-compose-prod.yaml down
|
||||
docker-compose -f docker-compose-prod.yaml up -d
|
||||
EOF
|
||||
+26
-24
@@ -61,33 +61,35 @@ services:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
celery:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- ai-network
|
||||
|
||||
# celery:
|
||||
# build:
|
||||
# context: .
|
||||
# container_name: ai-celery
|
||||
# restart: always
|
||||
# command: celery -A config worker -l info --concurrency=4
|
||||
# volumes:
|
||||
# - ./logs:/app/logs
|
||||
# - ./media:/app/media
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# DB_HOST: db
|
||||
# CELERY_BROKER_URL: redis://redis:6379/0
|
||||
# CELERY_RESULT_BACKEND: redis://redis:6379/0
|
||||
# SKIP_MIGRATE: "1"
|
||||
# DEBUG: "False"
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# redis:
|
||||
# condition: service_started
|
||||
# networks:
|
||||
# - ai-network
|
||||
celery:
|
||||
build:
|
||||
context: .
|
||||
container_name: ai-celery
|
||||
restart: always
|
||||
command: celery -A config worker -l info --concurrency=4
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./media:/app/media
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
DB_HOST: db
|
||||
CELERY_BROKER_URL: redis://redis:6379/0
|
||||
CELERY_RESULT_BACKEND: redis://redis:6379/0
|
||||
SKIP_MIGRATE: "1"
|
||||
DEBUG: "False"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
networks:
|
||||
- ai-network
|
||||
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user