Files
atabackend/docker-compose.celery-beat.yml
Beyhan Oğur d50f14bcb1 first commit
2026-04-26 22:20:45 +03:00

39 lines
1007 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# docker-compose.celery-beat.yml
#
# Bu dosya periyodik task'lar için Celery Beat scheduler'ı ekler.
# Beat'i kullanmak için:
# docker-compose -f docker-compose.yml -f docker-compose.celery-beat.yml up -d
version: '3.8'
services:
celery-beat:
build: .
container_name: django_celery_beat
entrypoint: ["/app/entrypoint-celery.sh"]
command: celery -A core beat --scheduler django --loglevel=info
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- .:/app
environment:
- DEBUG=1
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
# PostgreSQL ayarları
- USE_POSTGRES=True
- POSTGRES_DB=server_dj
- POSTGRES_USER=server_dj
- POSTGRES_PASSWORD=1234
- POSTGRES_HOST=10.80.80.50
- POSTGRES_PORT=5432
# Celery ayarları
- CELERY_BROKER_URL=redis://default:8KNa2T3ceGkrYPpt@212.64.215.243:6379/5
- CELERY_RESULT_BACKEND=django-db
depends_on:
- web
- celery
stdin_open: true
tty: true