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