mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
1.2 KiB
1.2 KiB
Production Install (Ubuntu LTS)
ENSL Website is fairly easy to run.
1. Install reverse proxy
Install apache, nginx etc. reverse proxy. It will take requests from the users and pass them to ENSL website. Sample configuration availble @ ext/nginx.
https://www.nginx.com/resources/wiki/start/
sudo apt-get install nginx
2. Install docker and docker-compose
https://docs.docker.com/install/ https://docs.docker.com/compose/install/
Install docker + docker-compose:
wget -O - 'https://get.docker.com/'|bash
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
3. Install git
4. Download ENSL website and install it
Now create the required directories, e.g. /srv/ensl.org
git clone git@github.com:ENSL/ensl.org.git
Create the .env
file by copying .env.example
with the appropriate credentials.
cd $PATH_TO_WEBSITE && cp .env.example .env
vim .env
If the database does not exist, it will be created with settings from .env file so make sure you configure it.
Finally, Start the docker containers.
docker-compose build
docker-compose --rm up