You've already forked RekomenciBackend
+32
-38
@@ -10,10 +10,10 @@ services:
|
||||
- template-project-backend:latest
|
||||
pull: true
|
||||
depends_on:
|
||||
migrations:
|
||||
restart: false
|
||||
condition: service_completed_successfully
|
||||
required: false
|
||||
# migrations:
|
||||
# restart: false
|
||||
# condition: service_completed_successfully
|
||||
# required: false
|
||||
postgres:
|
||||
restart: false
|
||||
condition: service_healthy
|
||||
@@ -60,23 +60,23 @@ 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
|
||||
@@ -91,13 +91,7 @@ services:
|
||||
- type: bind
|
||||
source: ./infrastructure/configs/backend/config.toml
|
||||
target: /app/config.toml
|
||||
read_only: true
|
||||
bind:
|
||||
selinux: Z
|
||||
- type: bind
|
||||
source: ./alembic.ini
|
||||
target: /app/alembic.ini
|
||||
read_only: true
|
||||
read_only: false
|
||||
bind:
|
||||
selinux: Z
|
||||
- type: bind
|
||||
@@ -131,7 +125,7 @@ services:
|
||||
- type: bind
|
||||
source: ./infrastructure/configs/backend/config.toml
|
||||
target: /app/config.toml
|
||||
read_only: true
|
||||
read_only: false
|
||||
bind:
|
||||
selinux: Z
|
||||
- type: bind
|
||||
@@ -149,9 +143,9 @@ services:
|
||||
- path: ./infrastructure/configs/postgres/.env
|
||||
required: false
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "--dbname=postgres"]
|
||||
interval: 1m30s
|
||||
timeout: 5s
|
||||
test: [ "CMD", "pg_isready", "-U", "postgres", "--dbname=postgres" ]
|
||||
interval: 5s
|
||||
timeout: 4s
|
||||
start_period: 5s
|
||||
start_interval: 2s
|
||||
retries: 5
|
||||
@@ -184,9 +178,9 @@ services:
|
||||
- path: ./infrastructure/configs/pgadmin/.env
|
||||
required: false
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-O", "-", "http://localhost:80/misc/ping"]
|
||||
interval: 1m30s
|
||||
timeout: 5s
|
||||
test: [ "CMD", "wget", "-O", "-", "http://localhost:80/misc/ping" ]
|
||||
interval: 5s
|
||||
timeout: 4s
|
||||
start_period: 5s
|
||||
start_interval: 2s
|
||||
retries: 5
|
||||
@@ -223,9 +217,9 @@ services:
|
||||
- path: ./infrastructure/configs/redis/.env
|
||||
required: false
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 1m30s
|
||||
timeout: 5s
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 5s
|
||||
timeout: 4s
|
||||
start_period: 5s
|
||||
start_interval: 2s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user