ensl.org/INSTALL.md
Ari Timonen 75b33e760a Move back to docker-compose + fix env vars
Fix env vars. Rely on inheritance.
Add a script to load env vars as above.
Fix staging env
Add nginx conf and SSL directory
Reorganize .gitignore
Use multi-staged docker-compose + dockerfile
Substitute env vars for static values
2020-04-05 05:58:41 +03:00

1.5 KiB

Install (Ubuntu LTS)

ENSL Website is fairly easy to run.

1. Install requirements: docker, docker-compose and git

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

Install git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

sudo apt-get install git

2. 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 ensl.org && cp .env.example .env
gedit .env

If the database does not exist, it will be created with settings from .env file so make sure you configure it.

First build the ENSL docker containers.

docker-compose build

Put any database dumps to db/initdb.d.

a) Then start for production:

docker-compose up

b) ... or start for development:

docker-compose -f docker-compose.yml up

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.