Doc update

This commit is contained in:
Ari Timonen 2020-05-03 12:48:47 +03:00
parent 997f505151
commit 66f012f3ec

View file

@ -2,7 +2,7 @@
ENSL Website is fairly easy to run. ENSL Website is fairly easy to run.
## 1. Install requirements: docker, docker-compose and git ### 1. Install requirements: docker, docker-compose and git
https://docs.docker.com/install/ https://docs.docker.com/install/
https://docs.docker.com/compose/install/ https://docs.docker.com/compose/install/
@ -17,16 +17,16 @@ Install git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
sudo apt-get install git sudo apt-get install git
## 2. Download ENSL website and install it ### 2. Download ENSL website and install it
git clone git@github.com:ENSL/ensl.org.git git clone git@github.com:ENSL/ensl.org.git
## 3. Second build the ENSL docker containers. ### 3. Build the ENSL docker containers.
cd ensl.org cd ensl.org
docker-compose build docker-compose build
## 4. Put any database dumps to `db/initdb.d`. (optional) ### 4. Put any database dumps to `db/initdb.d`. (optional)
You can use `script/db_dump.sh` to dump production database. You can use `script/db_dump.sh` to dump production database.
@ -35,16 +35,16 @@ You can use `script/db_dump.sh` to dump production database.
You need to manually copy it to staging database on same db server for now. You need to manually copy it to staging database on same db server for now.
## 5. Select your environment (eg. production). Then use a script to load the env vars to your shell env: ### 5. Load the env vars to your shell env:
source script/env.sh .env .env.production source script/env.sh .env .env.production
## 6. Then start the whole thing ### 6. Then start the whole thing
docker-compose up production docker-compose up production
docker-compose down docker-compose down
## 7. Install reverse proxy (production only) ### 7. Install reverse proxy (production only)
a) The docker-compose contains basic nginx setup. It's in docker-compose. Use that. a) The docker-compose contains basic nginx setup. It's in docker-compose. Use that.