Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0cdc07a063 | ||
|
9dc06c3529 | ||
|
8e626691b4 | ||
|
77d41699ef | ||
|
6e0c2ace5d | ||
|
463563ff73 | ||
|
47c210b5c1 |
@ -6,7 +6,6 @@ This setup will allow you to quickly run and maintain a Pleroma instance.
|
|||||||
* Automatic Backup
|
* Automatic Backup
|
||||||
* Automatic Restore
|
* Automatic Restore
|
||||||
* Automatic Upgrades
|
* Automatic Upgrades
|
||||||
* Automatic install of SoapBoxFE
|
|
||||||
* Daily Postgresql backups
|
* Daily Postgresql backups
|
||||||
|
|
||||||
### System Requirements
|
### System Requirements
|
||||||
@ -24,7 +23,7 @@ This setup will allow you to quickly run and maintain a Pleroma instance.
|
|||||||
|
|
||||||
##### Modify the second to last line in ```pleroma/setup.sh``` with your desired admin name
|
##### Modify the second to last line in ```pleroma/setup.sh``` with your desired admin name
|
||||||
|
|
||||||
##### Run ```get_pleroma.sh``` to get the latest Pleroma and SoapboxFE release
|
##### Run ```get_pleroma.sh``` to get the latest Pleroma release
|
||||||
|
|
||||||
### Running with a low-memory machine? ###
|
### Running with a low-memory machine? ###
|
||||||
Here is the recommended changes to make at the bottom of ```postgresql/postgresql.conf```
|
Here is the recommended changes to make at the bottom of ```postgresql/postgresql.conf```
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
restart: "always"
|
restart: "always"
|
||||||
volumes:
|
volumes:
|
||||||
- postgresql:/var/lib/postgresql/data
|
- postgresql:/var/lib/postgresql/data
|
||||||
|
- ./saves:/saves
|
||||||
networks:
|
networks:
|
||||||
- pleroma
|
- pleroma
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -15,7 +16,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/pleroma
|
- ./config:/etc/pleroma
|
||||||
- ./var:/var/lib/pleroma
|
- ./var:/var/lib/pleroma
|
||||||
- ./saves:/saves
|
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
networks:
|
networks:
|
||||||
|
@ -9,8 +9,8 @@ echo;echo "Downloading Latest Pleroma....";echo
|
|||||||
curl "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$arch-musl" -o pleroma/pleroma.zip
|
curl "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$arch-musl" -o pleroma/pleroma.zip
|
||||||
|
|
||||||
|
|
||||||
echo;echo "Downloading Latest Soapbox Build.....";echo
|
#echo;echo "Downloading Latest Soapbox Build.....";echo
|
||||||
wget https://gitlab.com/`curl https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs | grep 'build-production' | cut -d "\"" -f4 | head -1`/artifacts/download -O pleroma/soapbox-fe.zip
|
#wget https://gitlab.com/`curl https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs | grep 'build-production' | cut -d "\"" -f4 | head -1`/artifacts/download -O pleroma/soapbox-fe.zip
|
||||||
|
|
||||||
echo;echo "Now you can build Pleroma with docker-compose build";echo
|
echo;echo "Now you can build Pleroma with docker-compose build";echo
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@ WORKDIR /opt
|
|||||||
COPY pleroma.zip /opt/
|
COPY pleroma.zip /opt/
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
COPY soapbox-fe.zip /tmp/
|
#COPY soapbox-fe.zip /tmp/
|
||||||
|
|
||||||
RUN mkdir -p /etc/pleroma;chown -R pleroma /etc/pleroma
|
RUN mkdir -p /etc/pleroma;chown -R pleroma /etc/pleroma
|
||||||
|
|
||||||
ADD default.conf /etc/nginx/conf.d/
|
ADD default.conf /etc/nginx/http.d/
|
||||||
ADD start.sh /
|
ADD start.sh /
|
||||||
ADD setup.sh /
|
ADD setup.sh /
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ mkdir /var/run/nginx
|
|||||||
#Database Setup
|
#Database Setup
|
||||||
sleep 10
|
sleep 10
|
||||||
export PGPASSWORD="sql"
|
export PGPASSWORD="sql"
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS citext;"| PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS citext;"| PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS pg_trgm;" | PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS pg_trgm;" | PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" | PGPASSWORD=sql psql -h postgresql -U pleroma
|
echo "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" | PGPASSWORD=sql psql -h postgresql -U root pleroma
|
||||||
su pleroma -s $SHELL -lc "/opt/pleroma/bin/pleroma_ctl migrate"
|
su pleroma -s $SHELL -lc "/opt/pleroma/bin/pleroma_ctl migrate"
|
||||||
|
|
||||||
#su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --force"
|
#su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --force"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
su postgres -s /bin/bash -lc "pg_dumpall -d pleroma --format=custom > /saves/pleroma-`date +%Y-%m-%d-%H-%M`.pgdump"
|
su postgres -s /bin/bash -lc "pg_dump -d pleroma --format=custom > /saves/pleroma-`date +%Y-%m-%d-%H-%M`.pgdump"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user