Ver Fonte

Update 0.1.7.md

Stefan Pejcic há 1 ano atrás
pai
commit
663ee19957
1 ficheiros alterados com 35 adições e 0 exclusões
  1. 35 0
      documentation/docs/changelog/0.1.7.md

+ 35 - 0
documentation/docs/changelog/0.1.7.md

@@ -9,6 +9,7 @@ Not yet released.
 
 
 ### 🚀 New features
 ### 🚀 New features
 - [Cronjobs can now be enabled/disabled and run on demand](#cron-disable)
 - [Cronjobs can now be enabled/disabled and run on demand](#cron-disable)
+- [Containerized services](#conteinerized-services)
 - [Ubuntu 24.04 images](#ubuntu24-images)
 - [Ubuntu 24.04 images](#ubuntu24-images)
 - [Admin users can now be edited: rename, change password, suspend/unsuspend from OpenAdmin interface](#edit-admin-users)
 - [Admin users can now be edited: rename, change password, suspend/unsuspend from OpenAdmin interface](#edit-admin-users)
 - [OpenAdmin search for users, websites and options](#admin-search)
 - [OpenAdmin search for users, websites and options](#admin-search)
@@ -184,3 +185,37 @@ With these changes, **we managed to lower idle CPU & Memory Usage of new user ac
 Both official images [openpanel/nginx](https://hub.docker.com/r/openpanel/nginx) and [openpanel/apache](https://hub.docker.com/r/openpanel/apache) now use Ubuntu 24.04 as the base images.
 Both official images [openpanel/nginx](https://hub.docker.com/r/openpanel/nginx) and [openpanel/apache](https://hub.docker.com/r/openpanel/apache) now use Ubuntu 24.04 as the base images.
 This change fixes 16 vulnerabilities in the previous Ubuntu 22.04 docker image.
 This change fixes 16 vulnerabilities in the previous Ubuntu 22.04 docker image.
 
 
+
+----
+
+### Containerized services
+
+MySQL service is now run inside a docker container. This allows Admins to set cpu and memory limits for the service, as well to easily manage backup and restore.
+
+Example, restart mysql container:
+```bash
+docker restart openpanel_mysql
+```
+
+Example, backup mysql data locally:
+```bash
+docker run --rm \
+--mount source=openpanel_mysql_data,target=<target> \
+-v $(pwd):/backup \
+busybox \
+tar -czvf /backup/<backup-filename>.tar.gz <target>
+```
+
+Example, backup mysql data to AWS:
+```bash
+docker run --rm \
+  -v openpanel_mysql_data:/var/lib/mysql \
+  --env AWS_ACCESS_KEY_ID="<xxx>" \
+  --env AWS_SECRET_ACCESS_KEY="<xxx>" \
+  --env AWS_S3_BUCKET_NAME="<xxx>" \
+  --entrypoint backup \
+  offen/docker-volume-backup:v2
+```
+
+-----
+