Deployment repository for the findfacts project.
Deployment configs are stored here additively so that older versions still run when re-deploying.
There is a small tool, update-deployed.sh
that creates a new deployment with the files from templates
(and is able to do some variable replacement for consistent version numbers).
Set the version number variables in this script appropriately.
Don't change the deployed
folder manually!
Requirements: docker
>= 18, docker-compose
Steps to deploy:
-
Check out and
cd
into repo -
Create and set application secret:
head -c 32 /dev/urandom | base64
Set result as value in
deployed/app/app.env
forAPPLICATION_SECRET
key -
Set hostname in
deployed/app/server.env
-
Start infrastructure
cd deployed/infrastructure docker-compose up -d
-
Start db, then app (same way as infrastructure)
You can then reach the following endpoints:
- 80/443: reverse-proxy
- 3000: app
- 8983: solr
- 514,601,6514: syslog
So make sure only ports 80 and 443 are exposed to the web.
Logs are collected in the infrastructure_logs
volume (can also be accessed from prod_syslog
container under /logs
).