commit
89f4f186e1
@ -44,6 +44,9 @@ COPY --chown=pleroma:pleroma --from=unzip /opt/pleroma/ /opt/pleroma/
|
|||||||
|
|
||||||
VOLUME [ "/etc/pleroma", "/var/lib/pleroma/uploads", "/var/lib/pleroma/static" ]
|
VOLUME [ "/etc/pleroma", "/var/lib/pleroma/uploads", "/var/lib/pleroma/static" ]
|
||||||
|
|
||||||
|
ADD https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/v1.2.3/download?job=build-production /tmp/soapbox-fe.zip
|
||||||
|
RUN chown pleroma /tmp/soapbox-fe.zip
|
||||||
|
|
||||||
USER pleroma
|
USER pleroma
|
||||||
|
|
||||||
COPY *.sh /opt/pleroma/bin/
|
COPY *.sh /opt/pleroma/bin/
|
||||||
|
@ -35,10 +35,13 @@ The container will try to infer reasonable defaults for the rest of the variable
|
|||||||
| `--anonymize-uploads` | `ANONYMIZE_UPLOADS` | y |
|
| `--anonymize-uploads` | `ANONYMIZE_UPLOADS` | y |
|
||||||
| `--dedupe-uploads` | `DEDUPE_UPLOADS` | y |
|
| `--dedupe-uploads` | `DEDUPE_UPLOADS` | y |
|
||||||
|
|
||||||
|
|
||||||
See the [documentation for `instance gen`](https://docs-develop.pleroma.social/backend/administration/CLI_tasks/instance/) for more information.
|
See the [documentation for `instance gen`](https://docs-develop.pleroma.social/backend/administration/CLI_tasks/instance/) for more information.
|
||||||
|
|
||||||
If you want to use RUM indexes, you need a [PostgreSQL container that supports them](https://github.com/jordemort/docker-postgres-rum/).
|
If you want to use RUM indexes, you need a [PostgreSQL container that supports them](https://github.com/jordemort/docker-postgres-rum/).
|
||||||
|
|
||||||
|
If you would like to use the [SoapBox UI](https://soapbox.pub/) instead of the normal Pleroma UI, you can set an environment variable USE_SOAPBOX to "y". SoapBox is a alternative to the normal Pleroma UI and emphasizes easier private branding and theming.
|
||||||
|
|
||||||
## Persistence
|
## Persistence
|
||||||
|
|
||||||
If you want your instance data to persist properly, you need to mount volumes on the following directories:
|
If you want your instance data to persist properly, you need to mount volumes on the following directories:
|
||||||
|
@ -16,6 +16,7 @@ services:
|
|||||||
DOMAIN: localhost
|
DOMAIN: localhost
|
||||||
ADMIN_EMAIL: chicken@example.com
|
ADMIN_EMAIL: chicken@example.com
|
||||||
USE_RUM: "y"
|
USE_RUM: "y"
|
||||||
|
USE_SOAPBOX: "n"
|
||||||
POSTGRES_PASSWORD: hunter2
|
POSTGRES_PASSWORD: hunter2
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -17,4 +17,9 @@ if [ "${USE_RUM:-n}" = "y" ] ; then
|
|||||||
pleroma_ctl migrate --migrations-path priv/repo/optional_migrations/rum_indexing/
|
pleroma_ctl migrate --migrations-path priv/repo/optional_migrations/rum_indexing/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${USE_SOAPBOX:-n}" = "y" ]; then
|
||||||
|
unzip -o /tmp/soapbox-fe.zip -d /var/lib/pleroma
|
||||||
|
rm /tmp/soapbox-fe.zip
|
||||||
|
fi
|
||||||
|
|
||||||
exec pleroma start
|
exec pleroma start
|
||||||
|
Loading…
Reference in New Issue
Block a user