medal-data:setup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| medal-data:setup [2022/01/19 09:21] – arnaudpoletto | medal-data:setup [2022/01/19 11:46] (current) – arnaudpoletto | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| ==== Install Docker ==== | ==== Install Docker ==== | ||
| + | |||
| + | To setup Docker on the remote server, follow this procedure: | ||
| - **[t_remote]** To update ubuntu server, type: < | - **[t_remote]** To update ubuntu server, type: < | ||
| Line 53: | Line 55: | ||
| - | ===== Install Nginx ===== | + | ==== Install Nginx ==== |
| - | - Install nginx: < | + | To setup Nginx on the remote server, follow these steps: |
| - | - Enable nginx in the firewall by typing: < | + | |
| + | - **[t_remote]** Install nginx: < | ||
| + | - **[t_remote]** Enable nginx in the firewall by typing: < | ||
| - | ===== Install Dokku ===== | ||
| - | - Install dokku < | + | ==== Install |
| - | sudo DOKKU_TAG=v0.21.4 bash bootstrap.sh</ | + | |
| - | - Once the installation is complete, you can open a browser to setup your SSH key and virtualhost settings. | + | |
| - | - Open your browser of choice and navigate to the host's IP address - or the domain you assigned to that IP previously - and configure | + | |
| - | + | To setup Dokku on the remote server, follow these steps: | |
| - | + | ||
| - | + | ||
| - | === Dokku Installation on Remote Server === | + | |
| - | + | ||
| - | To setup the dokku installation, follow these steps: | + | |
| - **[t_remote]** Install dokku with the following commands: \\ < | - **[t_remote]** Install dokku with the following commands: \\ < | ||
| Line 79: | Line 73: | ||
| sudo DOKKU_TAG=v0.24.10 bash bootstrap.sh </ | sudo DOKKU_TAG=v0.24.10 bash bootstrap.sh </ | ||
| - **[t_local]** On the local workstation, | - **[t_local]** On the local workstation, | ||
| - | | + | |
| cat ~/ | cat ~/ | ||
| </ | </ | ||
| ssh-keygen -t rsa | ssh-keygen -t rsa | ||
| </ | </ | ||
| - | | + | |
| - | |||
| - | ==== Application Setup ==== | ||
| === Application Deployment === | === Application Deployment === | ||
| Line 125: | Line 117: | ||
| - **[t_local]** Do a copy the '' | - **[t_local]** Do a copy the '' | ||
| cp .env.dokku.example .env.dokku </ | cp .env.dokku.example .env.dokku </ | ||
| - | sudo nano .env.dokku </ | + | sudo nano .env.dokku </ |
| + | - **[t_remote]** Copy the file content to your clipboard. | ||
| - **[t_remote]** On the remote server, paste the content at the end of the following file: ''/ | - **[t_remote]** On the remote server, paste the content at the end of the following file: ''/ | ||
| - **[t_local]** Link and deploy the server with the following git commands (replace // | - **[t_local]** Link and deploy the server with the following git commands (replace // | ||
| Line 146: | Line 139: | ||
| dokku run medal-data php artisan 2fa: | dokku run medal-data php artisan 2fa: | ||
| </ | </ | ||
| + | |||
| + | - **[t_remote]** If you need to export existing data from medal-// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Domain Setup ===== | ||
| + | |||
| + | - **[t_remote]** On your server terminal, set domain: < | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Setting up letsencrypt with Dokku ===== | ||
| + | - **[t_remote]** On your server terminal, install letsencrypt plugin with: < | ||
| + | - **[t_remote]** Install certificate with < | ||
| + | - **[t_remote]** Restart the server: < | ||
| + | - Open your browser and test the system. Make sure to setup the Two-factor authentication before logging in. You should be able to login with the admin credentials using the email address // | ||
medal-data/setup.1642580480.txt.gz · Last modified: 2022/01/19 09:21 by arnaudpoletto
