mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-01 02:33:10 +01:00
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
# docker mastodon
|
|
|
|
## create configuration
|
|
```bash
|
|
docker-compose run --rm web bundle exec rake mastodon:setup
|
|
```
|
|
|
|
## Setup with existing configuration
|
|
```bash
|
|
docker-compose run --rm web bundle exec rails db:migrate
|
|
```
|
|
|
|
## cleanup
|
|
```bash
|
|
cd {{path_docker_compose_instances}}mastodon/
|
|
docker-compose down
|
|
docker volume rm mastodon_data mastodon_database mastodon_redis
|
|
cd {{path_docker_compose_instances}} &&
|
|
rm -vR {{path_docker_compose_instances}}mastodon
|
|
```
|
|
|
|
## access terminal
|
|
```bash
|
|
docker-compose exec -it web /bin/bash
|
|
```
|
|
|
|
## set rights
|
|
|
|
After setting up mastodon you need to give the rights
|
|
|
|
```bash
|
|
docker-compose exec -it -u root web chown -R 991:991 public
|
|
```
|
|
|
|
## further information
|
|
- https://goneuland.de/mastodon-mit-docker-und-traefik-installieren/
|
|
- https://gist.github.com/TrillCyborg/84939cd4013ace9960031b803a0590c4
|
|
- https://www.2daygeek.com/linux-command-check-website-is-up-down-alive/
|
|
- https://vitobotta.com/2022/11/07/setting-up-a-personal-mastodon-instance/
|
|
- https://www.digitalocean.com/community/tutorials/how-to-scale-your-mastodon-server |