Skip to content

mp-access/Infrastructure-Re

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment Guide

Prerequisites:

  • Host server with docker
  • Registered domain

Steps:

  1. Copy docker-compose-prod.yml to the /home/<your-user>/ directory on the host server and rename the file docker-compose.yml

  2. Copy the entire theme folder to the /home/<your-user>/ directory on the host server

  3. Copy the entire nginx folder to the /home/<your-user>/ directory on the host server

  4. Edit the file /home/<your-user>/nginx/default.conf by replacing <your-domain> (line 9) with your domain (without the https:// prefix)

  5. Generate SSL certificates for your domain with certbot

  6. By default the generated certificates are stored under /etc/letsencrypt/live/<your-domain>. Copy the files fullchain.pem and privkey.pem from /etc/letsencrypt/live/<your-domain> to /home/<your-user>/nginx/

  7. On the host server, set values for the following env variables:

    • POSTGRES_DB
    • POSTGRES_USER
    • POSTGRES_PASSWORD
    • KEYCLOAK_ADMIN
    • KEYCLOAK_ADMIN_PASSWORD
    • APP_URL (i.e. your domain with the https:// prefix)

    (Alternatively you can also modify docker-compose.yml on the host server directly by replacing all ${...} with the relevant values)

  8. On the host server cd /home/<your-user>/ and run sudo docker-compose up -d

  9. After 2-3 minutes ACCESS should be available on your domain

Note: To follow the official instructions for generating certificates with certbot, you will need to first install and start nginx directly on your host server. After certbot is done and your certificates are ready, you need to stop the local nginx running directly on your host server (sudo systemctl stop nginx for recent Ubuntu). Verify that the local nginx has terminated before running sudo docker-compose up -d (since the frontend image of ACCESS contains nginx as well, it will fail to start if the local nginx is already using the ports).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published