add async with all functions

This commit is contained in:
2026-10-23 00:20:58 +03:00
parent a85702a30e
commit 7b7ca1b888
42 changed files with 901 additions and 763 deletions
+1 -11
View File
@@ -5,9 +5,7 @@ services:
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
secrets:
- postgres_password
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
@@ -23,8 +21,6 @@ services:
image: mtusi-messenger:lab2
command: ["alembic", "upgrade", "head"]
env_file: .env
secrets:
- postgres_password
depends_on:
postgres:
condition: service_healthy
@@ -35,8 +31,6 @@ services:
image: mtusi-messenger:lab2
restart: unless-stopped
env_file: .env
secrets:
- postgres_password
ports:
- "127.0.0.1:8080:8080"
depends_on:
@@ -45,9 +39,5 @@ services:
migrate:
condition: service_completed_successfully
secrets:
postgres_password:
file: ./secrets/postgres_password
volumes:
pgdata: