The frontend's here.
- Fresh install?, run
scripts/setup.sh
to install the required packages like Docker. - Deploy/build docker container
- Run
python manage.py migrate
. python manage.py runscript populate_coding_tables
- Get into
web
container, - In the container, run the following commands to generate JWT keys:
ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS384.key
ssh-keygen -e -m PEM -f jwtRS384.key > jwtRS384.key.pub
- Setup passwordless SSH on remote.
- On the remote machine, run the
scripts/setup.sh
script (if 1st deploy). - Create context for remote:
docker context create remote --docker "host=ssh://user@ip"
- Change docker context:
docker context use remote
- Deploy:
COMPOSE_DOCKER_CLI_BUILD=0 docker-compose up -d --build
- Confirm that containers are up & running:
docker ps
(docker-compose logs -f
to check logs)