feat: added migrations

This commit is contained in:
ITQ
2025-11-13 16:10:28 +03:00
parent c3def9dc26
commit c519941c5a
6 changed files with 170 additions and 2 deletions
+22
View File
@@ -6,6 +6,10 @@ services:
context: .
dockerfile: Containerfile
depends_on:
migrate:
restart: false
condition: service_completed_successfully
required: true
postgres:
restart: false
condition: service_healthy
@@ -35,6 +39,24 @@ services:
- default
restart: unless-stopped
shm_size: 4mb
migrate:
build:
context: .
dockerfile: Containerfile.migrate
depends_on:
postgres:
restart: false
condition: service_healthy
required: true
env_file:
- path: ./infrastructure/core/.env.template
required: true
- path: ./infrastructure/core/.env
networks:
- default
restart: no
shm_size: 4mb
postgres:
image: docker.io/postgres:17-alpine