feat: updated migration to be auto matic

This commit is contained in:
=
2025-02-05 22:59:21 +05:30
parent 8204e970a8
commit 9602b864d4
16 changed files with 133 additions and 78 deletions

View File

@@ -56,22 +56,8 @@ services:
POSTGRES_USER: infisical
POSTGRES_DB: infisical-test
db-migration:
container_name: infisical-db-migration
depends_on:
- db
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file: .env
environment:
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
command: npm run migration:latest
volumes:
- ./backend/src:/app/src
backend:
container_name: infisical-dev-api
# container_name: infisical-dev-api
build:
context: ./backend
dockerfile: Dockerfile.dev
@@ -80,13 +66,11 @@ services:
condition: service_started
redis:
condition: service_started
db-migration:
condition: service_completed_successfully
env_file:
- .env
ports:
- 4000:4000
- 9464:9464 # for OTEL collection of Prometheus metrics
- 4000-4010:4000
# - 9464:9464 # for OTEL collection of Prometheus metrics
environment:
- NODE_ENV=development
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
@@ -192,7 +176,7 @@ services:
depends_on:
- openldap
profiles: [ldap]
keycloak:
image: quay.io/keycloak/keycloak:26.1.0
restart: always
@@ -202,7 +186,7 @@ services:
command: start-dev
ports:
- 8088:8080
profiles: [ sso ]
profiles: [sso]
volumes:
postgres-data: