add async search to celery task and logger

add env template
This commit is contained in:
Dmitry Afanasyev 2021-10-07 02:15:20 +03:00
parent 9f8c186128
commit b07212b567
2 changed files with 59 additions and 16 deletions

View File

@ -0,0 +1,46 @@
# === General ===
DOMAIN_NAME=localhost
TLS_EMAIL=webmaster@localhost
GITHUB_USERNAME=
GITHUB_TOKEN=
# === Django ===
# Generate yours with:
# python3 -c 'from django.utils.crypto import get_random_string; print(get_random_string(50))'
DJANGO_SECRET_KEY=I^[!b6gyNlXmaI,/{tagz+>:4V]%HJNW(=(@:*T~)g-t47tc7y
# === Database ===
# These variables are special, since they are consumed
# by both django and postgres docker image.
# Cannot be renamed if you use postgres in docker.
# See: https://hub.docker.com/_/postgres
POSTGRES_DB=github-repos
POSTGRES_USER=github-admin
POSTGRES_PASSWORD=admin_password
# Used only by django:
DJANGO_DATABASE_HOST=db
DJANGO_DATABASE_PORT=5432
# ==== Email =======
EMAIL_HOST=smtp.yandex.ru
EMAIL_HOST_USER=balsh-django@yandex.ru
EMAIL_HOST_PASSWORD=
EMAIL_PORT=465
EMAIL_USE_SSL=True
EMAIL_USE_TLS=False
# =======RabbitMQ=======
RABBITMQ_DEFAULT_USER=rabbit_admin
RABBITMQ_DEFAULT_PASS=mypass
RABBITMQ_PORT=5672
RABBITMQ_HOST=rabbitmq_host

View File

@ -2,6 +2,16 @@
version: "3.7" version: "3.7"
networks:
# Network for your internals, use it by default:
webnet:
name:
github_network
volumes:
pgdata:
name: github_pgdata
services: services:
db: db:
image: "postgres:12" image: "postgres:12"
@ -35,10 +45,9 @@ services:
dockerfile: ./docker/django/Dockerfile dockerfile: ./docker/django/Dockerfile
# args: # args:
# DJANGO_ENV: development # DJANGO_ENV: development
# cache_from: cache_from:
# - "github-repos:dev" - "github-repos:dev"
# - "github-repos:latest" - "github-repos:latest"
# - "*"
# volumes: # volumes:
# - django-static:/var/www/django/static # - django-static:/var/www/django/static
restart: unless-stopped restart: unless-stopped
@ -97,19 +106,7 @@ services:
networks: networks:
- webnet - webnet
# This task is an example of how to extend existing ones: # This task is an example of how to extend existing ones:
# some_worker: # some_worker:
# <<: *web # <<: *web
# command: python manage.py worker_process # command: python manage.py worker_process
networks:
# Network for your internals, use it by default:
webnet:
name:
github_network
volumes:
pgdata:
name: github_pgdata