Trên GitHub, angristan/docker-pleroma đã đạt 377 sao, ngôn ngữ Elixir. Docker image for the Pleroma federated social network
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Pleroma is a federated social networking platform, compatible with GNU social and other OStatus implementations. It is free software licensed under the AGPLv3.
It actually consists of two components: a backend, named simply Pleroma, and a user-facing frontend, named Pleroma-FE.
Its main advantages are its lightness and speed.
Pleromians trying to understand the memes
Features
Based on the elixir:alpine image
Ran as an unprivileged user
It works great
Sadly, this is not a reusable (e.g. I can't upload it to the Docker Hub), because for now Pleroma needs to compile the configuration. 😢
Thus you will need to build the image yourself, but I explain how to do it below.
Build-time variables
PLEROMA_VER : Pleroma version (latest commit of the develop branch by default)
GID: group id (default: 911)
UID: user id (default: 911)
Usage
Installation
Create a folder for your Pleroma instance. Inside, you should have Dockerfile and docker-compose.yml from this repo.
Here is the docker-compose.yml. You should change the POSTGRES_PASSWORD variable.
Create the upload and config folder and give write permissions for the uploads:
mkdir uploads config
chown -R 911:911 uploads
Pleroma needs the citext PostgreSQL extension, here is how to add it:
docker-compose up -d db
docker exec -i pleroma_db psql -U pleroma -c "CREATE EXTENSION IF NOT EXISTS citext;"
docker-compose down
Optionally configure Pleroma, see Config Override.
You can now build the image. 2 way of doing it:
docker-compose build
# or
docker build -t pleroma .
I prefer the latter because it's more verbose but this will ignore any build-time variables you have set in docker-compose.yml.
You can now launch your instance:
docker-compose up -d
The initial creation of the database schema will be done automatically. Check if everything went well with:
docker logs -f pleroma_web
Make a new admin user using docker exec (replace fakeadmin with any username you'd like):
docker exec -it pleroma_web sh ./bin/pleroma_ctl user new fakeadmin [email protected] --admin
You can now setup a Nginx reverse proxy in a container or on your host by using the example Nginx config.
Update
By default, the Dockerfile will be built from the latest commit of the develop branch as Pleroma does not have releases for now.
Thus to update, just rebuild your image and recreate your containers:
docker-compose pull # update the PostgreSQL if needed
docker-compose build .
# or
docker build -t pleroma .
docker-compose run --rm web mix ecto.migrate # migrate the database if needed
docker-compose up -d # recreate the containers if needed
If you want to run a specific commit, you can use the PLEROMA_VER variable:
docker build -t pleroma . --build-arg PLEROMA_VER=develop # a branch
docker build -t pleroma . --build-arg PLEROMA_VER=a9203ab3 # a commit
docker build -t pleroma . --build-arg PLEROMA_VER=v2.0.7 # a version
a9203ab3 being the hash of the commit. (They're here)
This value can also be set through docker-compose.yml as seen in the example file provided in this repository.
Config Override
By default the provided docker-compose.yml file mounts config.exs in the Pleroma container, this file is a dynamic configuration that sources some values from the environment variables provided to the container (variables like ADMIN_EMAIL etc.).
For those that want to change configuration that is not exposed through environment variables there is the option to mount the config-override.exs file which can than be modified to your satisfaction. Values set in this file will override anything set in config.exs. The override file provided in this repository disables new registrations on your instance, as an example.
Other Docker images
Here are other Pleroma Docker images that helped me build mine:
angristan/docker-pleroma có 377 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/angristan/docker-pleroma. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
angristan/docker-pleroma có phải mã nguồn mở không?
Có — angristan/docker-pleroma phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/angristan/docker-pleroma.
angristan/docker-pleroma có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho angristan/docker-pleroma. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
angristan/docker-pleroma có trang demo không?
Dự án có trang chủ ở https://git.pleroma.social/pleroma/pleroma/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
angristan/docker-pleroma còn đang phát triển không?
Commit gần nhất trên angristan/docker-pleroma là 1.6 năm trước (theo timestamp GitHub). Repo có 82 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc thêm về angristan/docker-pleroma ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/angristan/docker-pleroma là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
docker-pleroma có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về docker-pleroma.