= Project Archelec
== How to install with docker
=== Requirements
To be able to install the application on your server, you will need :
On debian like system, you can install them with the following command :
apt-get install git docker docker-compose
=== Process
/opt
$>git clone https://github.com/SciencesPoDRIS/archelec4 /opt/archelec4
archelec
$>useradd archelec -d /opt/archelec/ -M -r -s /bin/bash
docker
$> usermod -aG docker archelec
/opt/archelec
$>chown -R archelec:archelec /opt/archelec
Add the env variable MODE
like this: echo 'export MODE="prod"' >> ~/.bashrc
Create the system script service :
$> cd /etc/systemd/system/ $> vi archelec.service [Unit] Description=archelec Requires=docker.service
After=docker.service [Service] Restart=always User=archelec Group=archelec WorkingDirectory=/opt/archelec/docker
ExecStartPre=docker-compose -f docker-compose.yml down
ExecStart=docker-compose -f docker-compose.yml up
ExecStop=docker-compose -f docker-compose.yml down
systemctl start archelec.service
TIP: You can check the log of the process with the command journalctl -u archelec.service
Wait some minutes (the build of the docker stack can takes ~10min), and open your favorite browser on http://localchost (you can replace localhost by the name/ip of your server)
include::./docker/README.adoc[leveloffset=+1]
include::./frontend/README.adoc[leveloffset=+1]
include::./backend/README.adoc[leveloffset=+1]