Deploy a production instance#
Prerequisites#
In production, SousLeSens is deployed using docker with the compose plugin.
Prepare the souslesensVocables git repository#
Clone the git repository
git clone https://github.com/souslesens/souslesensVocables.git
cd souslesensVocables
Checkout the latest release
git checkout x.x.x # replace with release number (e.g. 1.95.0)
Prepare the sls-py-api git repository#
Clone the git repository
git clone git@github.com:souslesens/sls-py-api.git
cd sls-py-api
Checkout the latest tag
git checkout x.x.x # replace with release number (e.g. 1.4.0)
Prepare the jowl git repository#
Clone the git repository
git clone https://github.com/souslesens/jowl.git
cd jowl
Configure the deployment#
Back to souslesensVocables
directory, create a .env
file from the template
cp env.template .env
Edit the .env
file:
variable |
description |
default |
---|---|---|
|
Where the data will be written |
|
|
souslesensVocable release. Same as you checkout at the previous step |
|
|
sls-py-api tag. Same as you checkout at the previous step |
|
|
jowl git branch. Set to |
|
|
Path of the sls-py-api repository |
|
|
Path of the jowl repository |
|
|
Port of souslesensVocable that will be exposed outside |
|
|
Port of virtuoso that will be exposed outside |
|
|
Port of elasticsearch that will be exposed outside |
|
|
Port of jowl that will be exposed outside |
|
|
Port of sls-api that will be exposed outside |
|
|
Port of PostgresQL that will be exposed outside |
|
|
Password of the |
|
|
||
|
Password of the sql server |
|
|
Password of the virtuoso server |
|
|
Password for the |
|
Build the container images#
Build container images for souslesensVocables
, sls-py-api
and jowl
.
docker compose build
Create the data directories#
Elasticsearch and SqlServer needs directories with specific right. Use the following commands to create directories usable by ElasticSearch and SqlServer.
bash scripts/init_directories.sh
Start the stack#
docker compose up -d
SouslesensVocables will be available at port :3101
Upgrade SousLeSens to a new version#
First, read The CHANGELOG.md to know what changes will you install.
Fetch the latest changes
git fetch
Then, checkout the desired release
git checkout x.x.x # replace with release number (e.g. 1.95.0)
Change the VOCABLES_TAG
number in the .env
file
Rebuild the image
docker compose build vocables
Finally, restart the docker stack
docker compose up -d