@@ -24,24 +24,24 @@ You can do both in one command using `docker run`. This is the easiest way to ru
24
24
25
25
``` shell
26
26
# Linux variant: run on foreground, destroy container after exit, use host ports without NAT
27
- docker run --name evitadb -i --rm --net=host \
27
+ docker run --name evitadb -i --rm --net=host \
28
28
index.docker.io/evitadb/evitadb:latest
29
29
30
- # Windows / MacOS: there is open issue https://github.com/docker/roadmap/issues/238
30
+ # Windows / MacOS: there is open issue https://github.com/docker/roadmap/issues/238
31
31
# and you need to open ports manually and propagate host IP address to the container
32
32
docker run --name evitadb -i --rm -p 5555:5555 -p 5556:5556 -p 5557:5557 \
33
- -e " api.exposedOn=localhost" \
33
+ -e " api.exposedOn=localhost" \
34
34
index.docker.io/evitadb/evitadb:latest
35
35
```
36
36
37
37
When you start the evitaDB server you should see the following information in the console output:
38
38
39
39
``` plain
40
- _ _ ____ ____
41
- _____ _(_) |_ __ _| _ \| __ )
42
- / _ \ \ / / | __/ _` | | | | _ \
40
+ _ _ ____ ____
41
+ _____ _(_) |_ __ _| _ \| __ )
42
+ / _ \ \ / / | __/ _` | | | | _ \
43
43
| __/\ V /| | || (_| | |_| | |_) |
44
- \___| \_/ |_|\__\__,_|____/|____/
44
+ \___| \_/ |_|\__\__,_|____/|____/
45
45
46
46
You'll see some version here
47
47
Visit us at: https://evitadb.io
@@ -79,8 +79,8 @@ API `system` listening on http://your-server:5557/system/
79
79
<Tr>
80
80
<Td>`-i`</Td>
81
81
<Td>
82
- keeps STDIN open - the container will run in the foreground, and you'll see the container's
83
- standard/error output in the console. in the console, and you can stop the container by sending it
82
+ keeps STDIN open - the container will run in the foreground, and you'll see the container's
83
+ standard/error output in the console. in the console, and you can stop the container by sending it
84
84
a terminal signal (usually the the key combination `Ctrl`+`C`, or `Command`+`.` on MacOS).
85
85
</Td>
86
86
</Tr>
@@ -94,9 +94,9 @@ API `system` listening on http://your-server:5557/system/
94
94
<Tr>
95
95
<Td>`--net=host`</Td>
96
96
<Td>
97
- instructs Docker to use directly host system network stack, this way evitaDB behaves as if it runs directly
98
- on the host system network-wise, if the port configured in evitaDB configuration is already used on the
99
- system, Evita fails to set up appropriate web API (see next chapter for port remapping or
97
+ instructs Docker to use directly host system network stack, this way evitaDB behaves as if it runs directly
98
+ on the host system network-wise, if the port configured in evitaDB configuration is already used on the
99
+ system, Evita fails to set up appropriate web API (see next chapter for port remapping or
100
100
[evitaDB configuration](../operate/configure.md) for specifying open ports)
101
101
</Td>
102
102
</Tr>
@@ -112,17 +112,17 @@ open/re-mapping ports opened inside the Docker container in the following way:
112
112
``` shell
113
113
# run on foreground, destroy container after exit, use exact mapping for host ports
114
114
docker run --name evitadb -i --rm \
115
- -p 5555:5555 \
116
- -p 5556:5556 \
115
+ -p 5555:5555 \
116
+ -p 5556:5556 \
117
117
-p 5557:5557 \
118
- -e " api.exposedOn=localhost" \
118
+ -e " api.exposedOn=localhost" \
119
119
index.docker.io/evitadb/evitadb:latest
120
120
```
121
121
122
122
<Note type =" info " >
123
123
124
124
The ` -e "api.exposedOn=localhost" ` argument is necessary when evitaLab and/or Open API schema is generated and used
125
- from the host system the docker container is running on. This argument is not necessary when container shares
125
+ from the host system the docker container is running on. This argument is not necessary when container shares
126
126
the network with the host using argument ` --net=host ` . Argument tells evitaDB running in container to use ` localhost `
127
127
as a domain for generated URLs in the schemas and the evitaLab network requests. Otherwise it would use the container
128
128
inner hostname as a domain, which is not accessible from the outer host system.
@@ -170,7 +170,7 @@ inner hostname as a domain, which is not accessible from the outer host system.
170
170
<Tr>
171
171
<Td>`-p`</Td>
172
172
<Td>
173
- port remapping in the format `host port`:`container port`, so you could remap default ports opened by
173
+ port remapping in the format `host port`:`container port`, so you could remap default ports opened by
174
174
evitaDB inside the container to different ports on the host system.
175
175
</Td>
176
176
</Tr>
@@ -259,7 +259,7 @@ You can take advantage of all the following variables:
259
259
</Tr>
260
260
<Tr>
261
261
<Td>**`EVITA_JAVA_OPTS`**</Td>
262
- <Td>Java commandline arguments
262
+ <Td>Java commandline arguments
263
263
(list of basic arguments [can be found here](https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#overview-of-java-options)),
264
264
default: none (empty string)</Td>
265
265
</Tr>
@@ -292,18 +292,18 @@ You can also provide the entire configuration YAML file using a special volume i
292
292
``` shell
293
293
# # run interactively, destroy container after exit, use host ports without NAT, specify your own data directory and configuration file
294
294
docker run --name evitadb -i --net=host \
295
- -v " __config_file__:/evita/conf/evita-configuration.yaml" \
295
+ -v " __config_file__:/evita/conf/evita-configuration.yaml" \
296
296
-v " __data_dir__:/evita/data" \
297
297
-v " __certificate_dir__:/evita/certificates" \
298
298
index.docker.io/evitadb/evitadb:latest
299
299
```
300
300
301
- You need to replace ` __config_file__ ` with the path to the YAML file and ` __data_dir__ ` , ` __certificate_dir__ ` with
301
+ You need to replace ` __config_file__ ` with the path to the YAML file and ` __data_dir__ ` , ` __certificate_dir__ ` with
302
302
existing folders on the host file system.
303
303
304
304
<Note type =" info " >
305
- The contents should match the default configuration file
306
- <SourceClass >docker/evita-configuration.yaml</SourceClass >, but you can specify constants instead
305
+ The contents should match the default configuration file
306
+ <SourceClass >docker/evita-configuration.yaml</SourceClass >, but you can specify constants instead
307
307
of variables in certain settings.
308
308
</Note >
309
309
@@ -348,13 +348,13 @@ curl -k "https://localhost:5555/rest/system/liveness" \
348
348
```
349
349
this should return following confirmation about liveness status of the REST API:
350
350
``` json
351
- {"alive " :true }
351
+ {"liveness " :true }
352
352
```
353
353
354
354
### Control logging
355
355
356
356
evitaDB uses the [ Slf4j] ( https://www.slf4j.org/ ) logging facade with [ Logback] ( https://logback.qos.ch/ ) implementation, but
357
- you're free to change this. The default logback configuration is defined in a file
357
+ you're free to change this. The default logback configuration is defined in a file
358
358
<SourceClass >evita_server/src/main/resources/META-INF/logback.xml</SourceClass >.
359
359
360
360
You can completely override the default logback configuration by providing your own
@@ -363,7 +363,7 @@ You can completely override the default logback configuration by providing your
363
363
``` shell
364
364
# # run interactively, destroy container after exit, use host ports without NAT, specify your own data directory and configuration file
365
365
docker run --name evitadb -i --net=host \
366
- -v " __config_file__:/evita/conf/evita-configuration.yaml" \
366
+ -v " __config_file__:/evita/conf/evita-configuration.yaml" \
367
367
-v " __data_dir__:/evita/data" \
368
368
-v " __certificate_dir__:/evita/certificates" \
369
369
-v " __path_to_log_file__:/evita/logback.xml" \
@@ -401,7 +401,7 @@ evitaDB in the Docker compose file. The basic configuration could look like this
401
401
version : " 3.7"
402
402
services :
403
403
evita :
404
- image : index.docker.io/evitadb/evitadb:latest
404
+ image : index.docker.io/evitadb/evitadb:latest
405
405
environment :
406
406
- EVITA_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000
407
407
volumes :
0 commit comments