refactor add auth interceptor

This commit is contained in:
timka
2025-12-17 17:44:50 +03:00
parent 91a72f25fd
commit 49f4c0045f
4 changed files with 116 additions and 49 deletions
+45 -4
View File
@@ -73,6 +73,46 @@ services:
restart: unless-stopped
shm_size: 4mb
task:
build:
context: .
dockerfile: Containerfile
depends_on:
postgres:
restart: false
condition: service_healthy
required: true
redis:
restart: false
condition: service_healthy
required: true
auth:
restart: false
condition: service_started
required: true
env_file:
- path: ./infrastructure/task/.env.template
required: true
- path: ./infrastructure/task/.env
required: false
ports:
- name: http
target: 8083
published: 13447
host_ip: 127.0.0.1
protocol: tcp
app_protocol: http
- name: grpc
target: 50054
published: 13448
host_ip: 127.0.0.1
protocol: tcp
app_protocol: http
networks:
- default
restart: unless-stopped
shm_size: 4mb
core:
build:
context: .
@@ -98,6 +138,10 @@ services:
restart: false
condition: service_started
required: true
task:
restart: false
condition: service_started
required: true
env_file:
- path: ./infrastructure/core/.env.template
required: true
@@ -149,7 +193,7 @@ services:
- path: ./infrastructure/postgres/.env
required: false
healthcheck:
test: [ "CMD", "pg_isready", "--dbname=postgres" ]
test: ["CMD", "pg_isready", "--dbname=postgres"]
interval: 1m30s
timeout: 5s
start_period: 5s
@@ -234,7 +278,6 @@ services:
target: /data
read_only: false
networks:
default:
driver: bridge
@@ -244,13 +287,11 @@ networks:
enable_ipv6: true
internal: false
volumes:
postgres_data:
pgadmin_data:
redis_data:
configs:
postgres_config:
file: ./infrastructure/postgres/postgresql.conf