Compare commits
7 Commits
6402a5b418
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d494ab34e | |||
| 1a844132e6 | |||
| 85dcbd8808 | |||
| 5f0df931a7 | |||
| d38d2cd800 | |||
| 6204a57f86 | |||
| 4af4b0c02f |
@@ -5,8 +5,12 @@ CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {
|
||||
"hosts": [(env.str("REDIS_HOST", "redis"), env.int("REDIS_PORT", 6379))],
|
||||
"hosts": [
|
||||
(
|
||||
env.str("REDIS_HOST", "redis"),
|
||||
env.int("REDIS_PORT_6379_TCP_PORT", 6379)
|
||||
)
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
14
core/apps/api/migrations/0016_merge_20251202_1732.py
Normal file
14
core/apps/api/migrations/0016_merge_20251202_1732.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Generated by Django 5.2.7 on 2025-12-02 12:32
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0014_category_name_en_category_name_ru_category_name_uz'),
|
||||
('api', '0015_alter_adoption_ad'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
]
|
||||
12
stack.yaml
12
stack.yaml
@@ -34,7 +34,7 @@ services:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d uzxarid"]
|
||||
test: [ "CMD-SHELL", "pg_isready -U postgres -d uzxarid" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -47,7 +47,7 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
command: [ "redis-server", "--appendonly", "yes" ]
|
||||
networks:
|
||||
- uzxarid
|
||||
volumes:
|
||||
@@ -72,7 +72,7 @@ services:
|
||||
cpus: '0.50'
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
@@ -117,7 +117,7 @@ services:
|
||||
cpus: '1.50'
|
||||
memory: 1024M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8000/health/ || exit 1"]
|
||||
test: [ "CMD-SHELL", "curl -f http://localhost:8000/health/ || exit 1" ]
|
||||
interval: 15s
|
||||
timeout: 15s
|
||||
retries: 5
|
||||
@@ -133,7 +133,7 @@ services:
|
||||
ports:
|
||||
- mode: ingress
|
||||
target: 80
|
||||
published: ${PORT:?enviromentda PORT topilmadi}
|
||||
published: 8034
|
||||
protocol: tcp
|
||||
volumes:
|
||||
- type: bind
|
||||
@@ -167,7 +167,7 @@ services:
|
||||
- /var/run
|
||||
- /var/tmp
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost/health/ || exit 1"]
|
||||
test: [ "CMD-SHELL", "curl -f http://localhost/health/ || exit 1" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user