diff --git a/Dockerfile_migrations b/Dockerfile_migrations index fe0fe9c..b482a1e 100644 --- a/Dockerfile_migrations +++ b/Dockerfile_migrations @@ -13,12 +13,9 @@ ENV TZ=America/Argentina/Buenos_Aires CMD ["sh", "-c", " \ echo ' ' && \ echo 'Migrations execution: started' && \ - curl -X POST http://ahbcc:${API_PORT}/migrations/run/v1 && \ - echo 'Migrations execution: finished' && \ echo ' ' && \ - echo 'Criteria initialization: started' && \ - curl -X POST http://ahbcc:${API_PORT}/criteria/init/v1 && \ + curl -X POST http://ahbcc:${API_PORT}/migrations/run/v1 && \ echo ' ' && \ - echo 'Criteria initialization: finished' && \ + echo 'Migrations execution: finished' && \ echo ' ' \ "] \ No newline at end of file diff --git a/compose.yml b/compose.yml index c5859a2..f17a078 100644 --- a/compose.yml +++ b/compose.yml @@ -30,12 +30,12 @@ services: timeout: 10s retries: 5 - db_initializer: + db_migrations: image: alpine:latest build: context: . - dockerfile: Dockerfile_db - container_name: db_initializer + dockerfile: Dockerfile_migrations + container_name: db_migrations environment: API_PORT: ${APP_INTERNAL_PORT:-4001} env_file: