Skip to content

Commit

Permalink
Merge branch 'main' of github.com:behnam-sa/mlops-threats
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedsa-78 committed Aug 13, 2023
2 parents 495aecf + 67c23eb commit cae3378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PASSWORD=yHwt6Mjo7dESruva5B4W0u8G0JBossTk
- POSTGRES_DB=prefect
ports:
- '5432:5432'
Expand Down
2 changes: 1 addition & 1 deletion training/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN pip install -r requirements.txt
COPY . .

# RUN prefect config set PREFECT_API_DATABASE_MIGRATE_ON_START="True"
RUN prefect config set PREFECT_API_DATABASE_CONNECTION_URL="postgresql+asyncpg://postgres:postgres@prefect-db:5432/prefect"
RUN prefect config set PREFECT_API_DATABASE_CONNECTION_URL="postgresql+asyncpg://postgres:yHwt6Mjo7dESruva5B4W0u8G0JBossTk@prefect-db:5432/prefect"
RUN prefect config set PREFECT_API_URL=http://127.0.0.1:4200/api
ENV MLFLOW_TRACKING_URI=http://mlflow:5000
CMD ["sh","-c","prefect server start --host 0.0.0.0 & sleep 5 && prefect deployment apply train-deployment.yaml & sleep 5 && prefect agent start -q 'default'"]

0 comments on commit cae3378

Please sign in to comment.