OpenEx can be deployed using the docker-compose command.
To install OpenEx using Docker, you will need the docker-compose command, you can install it using:
$ sudo apt-get install docker-compose
$ mkdir /path/to/your/app && cd /path/to/your/app
$ git clone https://github.com/OpenEx-Platform/docker.git
$ cd docker
Before running the docker-compose
command, the docker-compose.yml
file must be configured. Two ways to do that:
- Use environment variables as it is proposed and you have an exemple in the
.env.sample
file (ie.POSTGRES_USER=${POSTGRES_USER}
). - Directly set the parameters in the
docker-compose.yml
.
Whether you are using one method or the other, here are the mandatory parameters to fill:
POSTGRES_USER=ChangeMe
POSTGRES_PASSWORD=ChangeMe
KEYSTORE_PASSWORD=ChangeMe
MINIO_ROOT_USER=ChangeMeAccess
MINIO_ROOT_PASSWORD=ChangeMeKey
SPRING_MAIL_HOST=smtp.changeme.com
SPRING_MAIL_PORT=25
[email protected]
SPRING_MAIL_PASSWORD=ChangeMe
SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_TRUST=*
SPRING_MAIL_PROPERTIES_MAIL_SMTP_SSL_ENABLE=false
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=false
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=false
You can deploy without using Docker swarm, with a the docker-compose
command. After changing your .env
file, just type:
$ sudo docker-compose up -d
In order to have the best experience with Docker, we recommend using the Docker stack feature. In this mode you will have the capacity to easily scale your deployment. If your virtual machine is not a part of a Swarm cluster, please use:
$ sudo docker swarm init
Then, you have to put your environment variables in the /etc/environment
and then:
$ sudo source /etc/environment
$ sudo docker stack deploy --compose-file docker-compose.yml openex
You can now go to http://localhost:8080 and log in with the default credentials:
- Login: [email protected]
- Password: admin
$ sudo docker-compose stop
$ sudo docker-compose pull
$ sudo docker-compose up -d
For each of services, you have to run the following command:
$ sudo docker service update --force service_name
If you wish your OpenEx data to be persistent while in production, you should be aware of the volumes
section for OpenEx
and PostgreSQL
services in the docker-compose.yml
.
Here is an example of volumes configuration:
volumes:
pgsqldata:
driver: local
driver_opts:
o: bind
type: none
s3data:
driver: local
driver_opts:
o: bind
type: none
OpenEx default docker-compose.yml
file does not provide any specific memory configuration. But if you want to adapt some dependencies configuration, you can find some links below.
The OpenEx platform is based on Spring (JAVA) and the main Docker container is running a JAVA process. In order to setup the JAVA memory allocation, you can use the environment variable ES_JAVA_OPTS
.
The minimal recommended option today is -Xms1G -Xmx1G.
PostgreSQL is the main database of OpenEx.
You can find more information in the official PostgresQL documentation.
MinIO is a small process and does not require a high amount of memory. More information are available for Linux here on the Kernel tuning guide.
OpenEx is a product powered by the collaboration of the private company Filigran, the French national cybersecurity agency (ANSSI), the CERT-EU and the Luatix non-profit organization.