ensl.org/INSTALL.md

52 lines
1.4 KiB
Markdown
Raw Normal View History

# Install (Ubuntu LTS)
2020-03-16 21:58:44 +00:00
ENSL Website is fairly easy to run.
2020-03-21 20:32:48 +00:00
## 1. Install requirements: docker, docker-compose and git
2020-03-16 21:58:44 +00:00
https://docs.docker.com/install/
https://docs.docker.com/compose/install/
2020-03-16 21:58:44 +00:00
Install docker + docker-compose:
2020-03-16 21:58:44 +00:00
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
2020-03-21 20:32:48 +00:00
Install git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
2020-03-22 12:49:27 +00:00
sudo apt-get install git
2020-03-22 12:49:27 +00:00
## 2. Download ENSL website and install it
2020-03-16 21:58:44 +00:00
Now create the required directories, e.g. `/srv/ensl.org`
2020-03-16 21:58:44 +00:00
git clone git@github.com:ENSL/ensl.org.git
2020-04-05 03:30:14 +00:00
First select your environment (eg. development). Then use a script to load the env vars to your shell env:
2020-04-05 03:30:14 +00:00
source script/env.sh .env .env.development
2020-04-05 03:30:14 +00:00
Second build the ENSL docker containers.
2014-03-31 21:33:16 +00:00
2020-03-16 21:58:44 +00:00
docker-compose build
Put any database dumps to `db/initdb.d`.
2020-03-22 12:49:27 +00:00
a) Then start for **production**:
docker-compose up
b) ... or start for **development**:
docker-compose -f docker-compose.yml up
2020-03-22 12:49:27 +00:00
## 3. Install reverse proxy (production only)
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
*Skip this step if you are only doing development.*