You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ESDLVALIDATOR_LOG_LEVEL | Set the log level: CRITICAL, ERROR, WARNING, INFO, DEBUG | INFO |
123
+
| MONGODB_HOST | Host of MongoDB repository | localhost |
124
+
| MONGODB_PORT | Port of MongoDB repository | 27017 |
123
125
124
126
## validation schema
125
127
@@ -185,7 +187,9 @@ To work with the latest version of ESDL, make sure `pyESDL>={version}` in `pypro
185
187
186
188
### Run ESDL-validator in develop/debug mode
187
189
188
-
To run the service in debug mode.
190
+
ESDL Validator uses MongoDB to store schema information. Therefore, make sure there is a MongoDB instance can be connected with. The host and port of MongoDB service can be configured via environment variables `MONGODB_HOST` and `MONGODB_PORT`. The easy way to start is to use `docker-compose.yml` file to start both containers. See the [Docker](#docker) section below.
191
+
192
+
Alternatively, to run ESDL Validator in a debug mode.
189
193
190
194
```
191
195
uv run app.py
@@ -199,6 +203,16 @@ An example how to start the service using waitress.
199
203
uv run waitress-serve --listen="*:8080" --call "esdlvalidator.api.manage:create_app"
200
204
```
201
205
206
+
### Docker
207
+
208
+
To start ESDL Validator together with MongoDB using docker compose:
209
+
210
+
```
211
+
docker-compose -f docker-compose.yml up --build -d
212
+
```
213
+
214
+
The service should now be accesible on ```localhost:3011```
0 commit comments