Before asking, did you search first? Press at the upper right to search
Hello,
I first want to thank you for any support you may offer. With that being said, I would like to discuss my issue and then my goals for my self-hosted Discourse instance.
Problem
I currently use Hetzner as my server that is hosting a discourse instance. I have attached volumes for Uploads , Backups. The current Docker containers and images, as well as the app.yml and etc, are hosted on the server itself under /var/discourse.
I have had this server over the course of 3-4+ years, and throughout that time, I have always run into the issue with space on the server itself (not volumes). Anytime I wanted to rebuild the app or relaunch the app, I would run into space issues as it would install the images and Docker containers to the local server rather than a volume. I would constantly need to remove Docker and any images/containers and do a fresh reinstall so I can rebuild. I also believe the SQL data is attached to the local server instead of a volume.
Goals
I am not sure what would be best for me going forward. Is it moving specific folders or files to a new volume for the Postgres DB and Docker images, and if so, I would love support on how to do that? Or starting from scratch with a fresh server, creating a backup of the server, and restoring on a new server with all volumes in properly configured locations?
With all this being said, I would love some support on configuring the app.yml to properly have volumes for everything that takes up space, so I can individually scale when backups, uploads, db, or docker images, for example, need it.
I can provide my app.yml file later today, as I am currently at work and looking to get ahead of the game.
אני מארח את ה-Discourse שלי ב-AWS, ועד כה הצלחתי מאוד לשמור את /var/discourse על נפח EBS נפרד שניתן לצרף, ולחבר את הנפח הזה למכונות EC2 שונות לפי הצורך שלי להעביר. אפילו שיניתי את הארכיטקטורה לחלוטין מ-x64 ל-ARM (החלפתי מכונות EC2 מ-t3a.large ל-r7g.large), ולאחר חיבור מחדש של נפח /var/discourse, חזרתי לפעילות לאחר פקודת launcher rebuild app פשוטה, גם עם שינוי הארכיטקטורה.
בשורה התחתונה, אם ה-/var/discourse שלכם מאוחסן בנפח שניתן לצרף, אז יש לכם את כל מצב הפורום שלכם במצב שניתן לצרף אותו כמעט כמו דיסק נשלף. כל עוד אתם יכולים להקים שרת ולהתקין עליו Docker, אתם יכולים לחבר את /var/discourse אליו, להריץ launcher rebuild app, ולהיות באוויר ופעילים. (בהנחה שדברים כמו שם המארח ודברים אחרים שצוינו ב-app.yml נשארים קבועים בין השרתים.)
שאלה, למרות שהעברתי את התיקייה /discourse לכונן ניתן להרכבה, אני עדיין מתקשה עם Docker. מכיוון שקונטיינרים ותמונות עדיין רצים על הכונן המקומי במקום על כונן. יש לך מושג איך לתקן את זה?