Установка exchanger-api
Установка Rest-API на собственные сервера доступна только при покупке полной лицензии ПО BoxExchanger
Prepare dependencies
1. Install Docker and Docker Compose
2. Create runner user and add it to sudoers
3. Create docker group and add user to it
4. Switch to a 'runner' user
5. Create docker network
6. Docker login
Create a Personal Access Token in GitLab
Make sure to tick the
read_registry
permission scopeCreate a reminder to update the PAT after expiration date, as once it expires you lose access for updates. https://git.boxexchanger.net/-/profile/personal_access_tokens
Login to docker read_registry
7. Create required folders
8. Create your configurations (.env)
Below example configuration .env
Insert your variables PROJECT_NAME
and API_URL
9. Create nginx configuration for api
Create /home/runner/api_server/nginx_api.conf file with following contents
Example nginx config.
10. Create your docker-compose.yml
Below example of docker compose file where you must change $VCS_NAMESPACE to your git group path for example bx4/project-name
11. Execute credential mongo generation script
12. Initialize MongoDB
13. Start API server
14. Get and remove initial admin credentials:
remove access.txt
Last updated