Infrastructure for the BioSentiers backend & frontend:
- PostgreSQL database with PostGIS
- Nginx web server
- Nodenv to manage multiple Node.js versions
- PM2 process manager for Node.js
This repo will only set up the required infrastructure. To deploy the BioSentiers backend and frontend, follow the instructions in their respective repositories:
- https://github.com/MediaComem/biosentiers-backend
- https://github.com/MediaComem/biosentiers-frontend
- Ansible 2+, installation
- Vagrant 1.9+, installation (for testing)
- Virtual Box 5+, installation (for testing)
- Put the project's password in a
.vault-password
file in the repository
To test the infrastructure in a Vagrant virtual machine:
- Run
vagrant up
To run the infrastructure in production:
-
Create an Ansible inventory and save it as
production.inventory
-
Apply the production playbook:
ansible-playbook \ --inventory production.inventory \ --vault-password-file .vault-password \ playbook.production.yml