Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:docker:docker_dokuwiki_portable [2020/07/24 14:03] – carlossousa | computer_science:docker:docker_dokuwiki_portable [2023/12/01 12:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
This documentation was also used successfully to deploy to a VPS. | This documentation was also used successfully to deploy to a VPS. | ||
+ | |||
+ | I will be using a pre-made image from [[https:// | ||
I'm assuming you already have Docker and Docker-Compose installed. | I'm assuming you already have Docker and Docker-Compose installed. | ||
Line 25: | Line 27: | ||
===== Preparations due to LVM ===== | ===== Preparations due to LVM ===== | ||
- | First, after installing Ubuntu, we should expand the LVM to use the entire | + | First, after installing Ubuntu, we should expand the LVM to use the entire |
<code bash> | <code bash> | ||
Line 60: | Line 62: | ||
---- | ---- | ||
+ | |||
===== Avoiding "sudo docker command" | ===== Avoiding "sudo docker command" | ||
Line 159: | Line 162: | ||
|docker-compose ps|Checks the status of the Container| | |docker-compose ps|Checks the status of the Container| | ||
- | Your container should now be accessible via http://< | + | Your container should now be accessible via [[http://< |
- | Do note that https:// isn't available, since the container isn't listening on port 443. | + | Do note that https:// isn't available, since the container isn't listening on port 443. // |
- | \\ | + | ---- |
+ | |||
+ | ===== Backing Up / Migrating the Data ===== | ||
+ | |||
+ | We can easily migrate the data by grabbing everything in the mounted volumes and collecting them into a tar(ball). | ||
+ | |||
+ | To do that we can create a file called **backtup_to_tar.sh** which when run will grab everything from // | ||
+ | <code bash> | ||
+ | # | ||
+ | SOURCE_PATH="/ | ||
+ | BACKUP_PATH="/ | ||
+ | BACKUP_NAME=" | ||
+ | tar cvf " | ||
+ | |||
+ | |||
+ | </ | ||