Module project, commit, submission
All checks were successful
Build and Release / release (push) Successful in 1m15s

This commit is contained in:
2026-04-26 16:31:03 +07:00
parent ac90236022
commit 6918a100fc
60 changed files with 5957 additions and 1020 deletions

View File

@@ -1,5 +1,5 @@
services:
db:
history_db:
image: postgis/postgis:18-3.6
container_name: history_db
restart: unless-stopped
@@ -10,10 +10,8 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- history_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
@@ -22,17 +20,17 @@ services:
networks:
- history-api-project
cache:
history_cache:
image: redis:8.6.2-alpine
container_name: history_redis
container_name: history_cache
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
- history_cache_data:/data
networks:
- history-api-project
migrate:
history_migrate:
build:
context: .
dockerfile_inline: |
@@ -40,7 +38,7 @@ services:
COPY db/migrations /migrations
container_name: history_migrate
depends_on:
db:
history_db:
condition: service_healthy
env_file:
- ./assets/resources/.env
@@ -48,7 +46,7 @@ services:
- sh
- -c
- |
DB_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable"
DB_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@history_db:5432/${POSTGRES_DB}?sslmode=disable"
for i in 1 2 3; do
echo "Migration attempt $$i..."
@@ -64,16 +62,16 @@ services:
networks:
- history-api-project
app:
history_app:
build: .
container_name: history_app
restart: unless-stopped
depends_on:
migrate:
history_migrate:
condition: service_completed_successfully
db:
history_db:
condition: service_healthy
cache:
history_cache:
condition: service_started
env_file:
- ./assets/resources/.env
@@ -82,14 +80,14 @@ services:
networks:
- history-api-project
email_worker:
history_email_worker:
build: .
container_name: history_email_worker
restart: unless-stopped
depends_on:
db:
history_db:
condition: service_healthy
cache:
history_cache:
condition: service_started
env_file:
- ./assets/resources/.env
@@ -97,14 +95,14 @@ services:
networks:
- history-api-project
storage_worker:
history_storage_worker:
build: .
container_name: history_storage_worker
restart: unless-stopped
depends_on:
db:
history_db:
condition: service_healthy
cache:
history_cache:
condition: service_started
env_file:
- ./assets/resources/.env
@@ -113,8 +111,8 @@ services:
- history-api-project
volumes:
pg_data:
redis_data:
history_db_data:
history_cache_data:
networks:
history-api-project: