first commit
This commit is contained in:
64
docker-compose.yml
Normal file
64
docker-compose.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: django_web_test_shop
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
volumes:
|
||||
- .:/app
|
||||
- static_volume:/app/staticfiles
|
||||
- media_volume:/app/media
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DEBUG=1
|
||||
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
|
||||
# PostgreSQL ayarları - mevcut sunucunuzu kullanıyor
|
||||
- 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
|
||||
# Mac'te Docker Desktop kullanıyorsanız host.docker.internal kullanabilirsiniz
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
celery:
|
||||
build: .
|
||||
container_name: django_celery_worker_test_shop
|
||||
entrypoint: ["/app/entrypoint-celery.sh"]
|
||||
command: celery -A core worker --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
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
static_volume:
|
||||
media_volume:
|
||||
Reference in New Issue
Block a user