-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
74 lines (63 loc) · 2.19 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# General
GENERAL_PACKAGE_NAME=etl_service
BASE_DIR=/opt/app
# Postgres admin
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_DB=postgres
POSTGRES_USER=admin
POSTGRES_PASSWORD=123
POSTGRES_DSN=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
POSTGRES_ETRACT_BATCH_SIZE=2000
# Postgres web
APP_POSTGRES_DB=movies_database
APP_POSTGRES_USER=app
APP_POSTGRES_PASSWORD=345
APP_POSTGRES_DSN=postgresql://${APP_POSTGRES_USER}:${APP_POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${APP_POSTGRES_DB}
# Postgres auth
AUTH_POSTGRES_ASYNC_SCHEMA=postgresql+asyncpg
AUTH_POSTGRES_DB=auth_database
AUTH_POSTGRES_USER=auth
AUTH_POSTGRES_PASSWORD=567
AUTH_POSTGRES_DSN=${AUTH_POSTGRES_ASYNC_SCHEMA}://${AUTH_POSTGRES_USER}:${AUTH_POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${AUTH_POSTGRES_DB}
AUTH_POSTGRES_DSN_LOCAL=${AUTH_POSTGRES_ASYNC_SCHEMA}://${AUTH_POSTGRES_USER}:${AUTH_POSTGRES_PASSWORD}@localhost:${POSTGRES_PORT}/${AUTH_POSTGRES_DB}
# Django
DJANGO_DEBUG=True
DJANGO_SECRET_KEY='@drk60^$i71#f^$u(@@*ci%itutd+)h6k#vhesw*3sb^-%!t37'
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
DJANGO_SETTINGS_MODULE=config.settings
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_PASSWORD=123
# Redis general
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB_NUMBER=0
REDIS_USER=admin
REDIS_PASSWORD=123
REDIS_DSN=redis://${REDIS_USER}:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB_NUMBER}
# Redis web
APP_REDIS_DB_NUMBER=1
APP_REDIS_USER=web_app
APP_REDIS_PASSWORD=345
# Redis auth
AUTH_REDIS_DB_NUMBER=2
AUTH_REDIS_USER=auth_app
AUTH_REDIS_PASSWORD=567
AUTH_REDIS_DSN=redis://${AUTH_REDIS_USER}:${AUTH_REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${AUTH_REDIS_DB_NUMBER}
#JWT
AUTH_JWT_ACCESS_EXPIRES=900
AUTH_JWT_REFRESH_EXPIRES=604800
# Auth
AUTH_SUPERUSER_USERNAME=admin
AUTH_SUPERUSER_PASSWORD=securepassword245
# Elasticsearch
ELASTICSEARCH_HOST=elasticsearch
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_DSN=http://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}
ELASTICSEARCH_INDEX=movies
ELASTICSEARCH_LOAD_BATCH_SIZE=2000
ES_JAVA_OPTS="-Xms1g -Xmx1g"
discovery.type=single-node
xpack.security.enabled=false