Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Reclaim disk space #128

Open
fryorcraken opened this issue Sep 27, 2024 · 2 comments
Open

[doc] Reclaim disk space #128

fryorcraken opened this issue Sep 27, 2024 · 2 comments

Comments

@fryorcraken
Copy link
Contributor

fryorcraken commented Sep 27, 2024

Diskspace can be limited on a VPS, here are some tips.
Saving some tips in this issue. This could be moved to the advanced readme as a PR.

1. Limit DB size

echo "export STORAGE_SIZE=20GB" >> .env
# Needs a restart
sudo docker-compose restart

2. Clean up docker files

# Be sure that your containers **are running**
sudo docker-compose up -d

# Clean docker system files
docker system prune -a

# Delete docker images
docker image prune -a

# Delete docker containers
docker container prune

# Delete docker volumes
docker volume prune

3. Limit log system size

sudo journalctl --vacuum-time=2d
@YAMISHKA02
Copy link

what the issue? I can try to help but not really understand where is the problem

@fryorcraken fryorcraken changed the title Reclaim disk space [doc] Reclaim disk space Oct 1, 2024
@fryorcraken
Copy link
Contributor Author

what the issue? I can try to help but not really understand where is the problem

Not an issue per se. Just recording some tips. I could have done a PR to add it to the readme instead. Will do if I have to forward this too often to people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants