-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
87 lines (68 loc) · 2.73 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
75
76
77
78
79
80
81
82
83
84
85
86
87
# =============================================================================
# DEVELOPMENT CONFIG EXAMPLE
# -----------------------------------------------------------------------------
# FastAPI environment variables
# =============================================================================
APP_CONTAINER_NAME=yuno-app-container
APP_IMAGE_NAME=yuno-app-image
APP_NAME=yuno
MODE=development
API_VERSION=v1
API_PREFIX=/api/${API_VERSION}
SECRET_KEY=secret
JWT_ALGORITHM=HS256
# -----------------------------------------------------------------------------
# PostgreSQL database environment variables
# -----------------------------------------------------------------------------
DB_CONTAINER_NAME=yuno-db-container
DB_SCHEME=postgresql+asyncpg
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=db
DB_PORT=5432
DB_NAME=yuno-db-test
ASYNC_DATABASE_URI=${DB_SCHEME}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
# -----------------------------------------------------------------------------
# Redis variables
# -----------------------------------------------------------------------------
REDIS_CONTAINER_NAME=yuno-redis-container
REDIS_HOST=redis-server
REDIS_PORT=6379
REDIS_PASSWORD=r3d15_p455
REDIS_POOL_SIZE=100
# -----------------------------------------------------------------------------
# Minio variables
# -----------------------------------------------------------------------------
MINIO_CONTAINER_NAME=yuno-minio-container
MINIO_ROOT_USER=minio
MINIO_ROOT_PASSWORD=minio123
MINIO_URL=minio:9000
MINIO_BUCKET=fastapi-minio
# -----------------------------------------------------------------------------
# Celery variables
# -----------------------------------------------------------------------------
CELERY_WORKER_CONTAINER_NAME=yuno-celery-worker-container
FLOWER_CONTAINER_NAME=yuno-flower-container
CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis-server:6379/0
RESULT_BACKEND=redis://:${REDIS_PASSWORD}@redis-server:6379/0
WS_MESSAGE_QUEUE=redis://:${REDIS_PASSWORD}@redis-server:6379/0
# -----------------------------------------------------------------------------
# Mail variables
# -----------------------------------------------------------------------------
MAIL_HOST=localhost
MAIL_PORT=44350
# -----------------------------------------------------------------------------
# Log settings
# -----------------------------------------------------------------------------
LOGGING_LEVEL=DEBUG
LOGGING_JSON_ENABLED=False
# Log file
LOGGING_FILE_NAME=log_file_name.log
# HH:MM
LOGGING_ROTATION=00:00
# in days
LOGGING_RETENTION=3
# -----------------------------------------------------------------------------
# Misc settings
# -----------------------------------------------------------------------------
BACKEND_CORS_ORIGINS=["*"]