add async with all functions
This commit is contained in:
+1
-11
@@ -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:
|
||||
Reference in New Issue
Block a user