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:17] – arnaudpoletto | medal-data:setup [2022/01/19 11:46] (current) – arnaudpoletto | ||
---|---|---|---|
Line 31: | Line 31: | ||
+ | ==== Install Docker ==== | ||
- | === Dokku Installation | + | To setup Docker |
- | To setup the dokku installation, | + | |
- | | + | |
- **[t_remote]** Install a few prerequisite packages which let apt use packages over HTTPS by typing: < | - **[t_remote]** Install a few prerequisite packages which let apt use packages over HTTPS by typing: < | ||
- **[t_remote]** Add the GPG key for the official Docker repository to your system by typing: < | - **[t_remote]** Add the GPG key for the official Docker repository to your system by typing: < | ||
Line 50: | Line 50: | ||
- **[t_remote]** Finally, install Docker: < | - **[t_remote]** Finally, install Docker: < | ||
- **[t_remote]** Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running: < | - **[t_remote]** Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running: < | ||
+ | For more information, | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Install Nginx ==== | ||
+ | |||
+ | To setup Nginx on the remote server, follow these steps: | ||
+ | |||
+ | - **[t_remote]** Install nginx: < | ||
+ | - **[t_remote]** Enable nginx in the firewall by typing: < | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Install Dokku ==== | ||
+ | |||
+ | To setup Dokku on the remote server, follow these steps: | ||
+ | |||
+ | - **[t_remote]** Install dokku with the following commands: \\ < | ||
+ | wget https:// | ||
+ | sudo DOKKU_TAG=v0.24.10 bash bootstrap.sh </ | ||
- **[t_local]** On the local workstation, | - **[t_local]** On the local workstation, | ||
| | ||
Line 60: | Line 82: | ||
- | |||
- | ==== Application Setup ==== | ||
=== Application Deployment === | === Application Deployment === | ||
Line 97: | 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 118: | 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.1642580271.txt.gz · Last modified: 2022/01/19 09:17 by arnaudpoletto