Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.18 KB

File metadata and controls

44 lines (28 loc) · 1.18 KB

Env setup and deployment

Docker setup

This project relies on legacy tech stack, we have dockerized it for easier setup.

To begin with you need to have docker installed, example: https://docs.docker.com/engine/install/ubuntu/

# build and start/restart the container:
docker-compose up --build --force-recreate

# or do the same in background
docker-compose up --build --force-recreate -d

# stop the container
docker-compose down

Container will restart on system reboot until you stop it manually.

Application should be up at localhost:8081.

Database info

First time container starts, it will create database in ./db and will persist after container stops/restarts. Database is bootstrapped on first start.

PhpMyAdmin

PMA creds are present in ./db/mysql/pma_creds

Mail setup

For emails, some cloud hosts do not allow outgoing mails. We have to use smtp relay like sendinblue instead.

After, first time container starts, it creates ./db/.msmtprc, modify it with your details without changing permissions.

Auto scheduled deploys

Following cron re-deploys code daily at 12 am:

$ crontab -e
# code sync
0 0 * * * bash -lc alumni/deploy/docker-sync 1>&2