@@ -19,9 +19,22 @@ In case of creating your own environment you have to manually call `config/envir
### Docker configuration
The docker configuration is located at `docker/<env>/config` and will override values from the above default config.
The docker configuration is located at `docker/config` and will override values from the above default config.
You may also override config by providing environmental variables.
There are some additional configuration variable used for docker-compose which are located at the repositories root (`.env`). These variables include:
-`OX_VERSION` - This is used when building the images. Every built image will be tagged with this String (e.g. 7.10.3)
-`OX_BASE_DISTRIBUTION` - The linux distribution to be used inside the docker images. Every used image is based on this (ox-base, this iamge gets tagged as well)
-`OX_BASE_RELEASE` - The distributions release (e.g. Stretch or buster)
-`OX_RUNTIME_DATA_PATH` - The location where docker-compose will store its data. This location is by default unter `docker/.runtime` but its recommended to put this outside of the git repo.
The docker-compose environment is able to persist its data across restarts and recreations. Everytime a container gets recreated it fetches the required configuration from the consul. This includes databases IDs, oxguardpass and some flags used for determining the current clusters init state.
*IMPORTANT:* Recreating frontend or middleware nodes works without caution. For the database you have to ensure a gracefull shutdown (or enable the periodic database dump).
To shut it down properly execute: `docker-compose down -v`
You can use consul to observe the init process when starting the environment. In addition to that you can use it to rudimentary monitor the services health.
It is located at `http://localhost:8500`
## Versions
Versions can be configured at `setup/versions`
...
...
@@ -65,11 +78,9 @@ Take a look at the features/ direcotry for the feature related scripts. These sc
#### Guard
To enable / install guard on a node simply execute: