afnzsljdghskjerlg

Signed-off-by: ITQ <itq.dev@ya.ru>
This commit is contained in:
ITQ
2025-11-21 19:29:00 +03:00
parent 44df678c82
commit f334e1f2cc
2 changed files with 109 additions and 82 deletions
+43 -26
View File
@@ -27,6 +27,13 @@ services:
required: true
- path: ./infrastructure/configs/backend/.env
required: false
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:8080/healthcheck" ]
interval: 5s
timeout: 4s
start_period: 5s
start_interval: 2s
retries: 5
networks:
- default
ports:
@@ -44,13 +51,13 @@ services:
target: /app/config.toml
read_only: true
bind:
selinux: Z
selinux: z
- type: bind
source: ./infrastructure/configs/backend/firebase.json
target: /app/firebase.json
read_only: true
bind:
selinux: Z
selinux: z
tests:
build:
@@ -60,28 +67,35 @@ services:
tags:
- template-project-tests:latest
pull: true
# depends_on:
# backend:
# restart: false
# condition: service_healthy
# required: true
# migrations:
# restart: false
# condition: service_completed_successfully
# required: true
# postgres:
# restart: false
# condition: service_healthy
# required: true
# redis:
# restart: false
# condition: service_healthy
# required: true
depends_on:
backend:
restart: false
condition: service_healthy
required: true
migrations:
restart: false
condition: service_completed_successfully
required: true
postgres:
restart: false
condition: service_healthy
required: true
redis:
restart: false
condition: service_healthy
required: true
env_file:
- path: ./infrastructure/configs/backend/.env.template
required: true
- path: ./infrastructure/configs/backend/.env
required: false
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres", "--dbname=postgres" ]
interval: 5s
timeout: 4s
start_period: 5s
start_interval: 2s
retries: 5
networks:
- default
profiles:
@@ -91,12 +105,15 @@ services:
- type: bind
source: ./infrastructure/configs/backend/config.toml
target: /app/config.toml
read_only: false
read_only: true
bind:
selinux: Z
selinux: z
- type: bind
source: ./.cov
target: /app/cov
read_only: false
bind:
selinux: z
migrations:
build:
@@ -127,13 +144,13 @@ services:
target: /app/config.toml
read_only: false
bind:
selinux: Z
selinux: z
- type: bind
source: ./alembic.ini
target: /app/alembic.ini
read_only: true
bind:
selinux: Z
selinux: z
postgres:
image: docker.io/postgres:17-alpine
@@ -160,7 +177,7 @@ services:
target: /etc/postgresql/postgresql.conf
read_only: true
bind:
selinux: Z
selinux: z
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
@@ -203,7 +220,7 @@ services:
target: /pgadmin4/servers.json
read_only: true
bind:
selinux: Z
selinux: z
- type: volume
source: pgadmin_data
target: /var/lib/pgadmin
@@ -233,7 +250,7 @@ services:
target: /usr/local/etc/redis/redis.conf
read_only: true
bind:
selinux: Z
selinux: z
- type: volume
source: redis_data
target: /data