This commit is contained in:
Your Name 2022-11-27 15:21:58 -07:00
parent 4dd9eade07
commit 8eed63f335
7 changed files with 11 additions and 170 deletions

View File

@ -1,5 +1,5 @@
# Quickly Run Pleroma in Docker
This setup will allow you to quickly run and maintain a Pleroma instance.
# Quickly Run Akkoma in Docker
This setup will allow you to quickly run and maintain a Akkoma instance.
### Features
* Mostly Automated Install
@ -21,9 +21,9 @@ This setup will allow you to quickly run and maintain a Pleroma instance.
##### Modify ```ENDPOINT``` in ```docker-compose.yml``` with your domain name
##### Modify the second to last line in ```pleroma/setup.sh``` with your desired admin name
##### Modify the second to last line in ```akkoma/setup.sh``` with your desired admin name
##### Run ```get_pleroma.sh``` to get the latest Pleroma release
##### Run ```get_akkoma.sh``` to get the latest Akkoma release
### Running with a low-memory machine? ###
Here is the recommended changes to make at the bottom of ```postgresql/postgresql.conf```
@ -43,7 +43,7 @@ max_wal_size = 4GB
```
##### Build and Start Pleroma
##### Build and Start Akkoma
```
git checkout HEAD config/config.exs

View File

@ -1,125 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIFsDCCBJigAwIBAgIRAMoRC7S3O2Vdw32qtWz8ZDcwDQYJKoZIhvcNAQELBQAw
gY8xCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO
BgNVBAcTB1NhbGZvcmQxGDAWBgNVBAoTD1NlY3RpZ28gTGltaXRlZDE3MDUGA1UE
AxMuU2VjdGlnbyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD
QTAeFw0yMDA5MjgwMDAwMDBaFw0yMTA5MjgyMzU5NTlaMBMxETAPBgNVBAMTCHJh
Z2UubG9sMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsU67K4WYtvSD
G3uYSheSM07A48tkZWyvoBSekl8rwYsxX5SJfi2WQ0b3wHJ4LKk83Xi4fGfutUxS
k0HPdEVpukwxgfId1KJC1hM0k/Sx6h1F773G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svPsHX0728I0Z6ni2AFN2d3ya2SKRddL/MFx9LUy73zO2bPaec
CpOuWG3TIynYi42ptOVyFRTOxivggBfLBByPVC4rAoGAY3KzcC2wNUK26qv31JW4
C2mlyqd4psVZnAmRqp+SSrGGRkUXVk6nRko6N+Way4HfyqokRa3OEusK/+0GcS/z
2Pwj75+ibHEfcGmojxgUJfEJEaC3BUG3KJ8swt2E+doIiHogffkjNTKBP3JVm/Aq
lT0qUd+/RriTVzDi0k/EF34=
-----END PRIVATE KEY-----

View File

@ -6,9 +6,4 @@ This is MOSTLY a free speech instance. There are are rules and standards of cond
<br><br>4. Free speech, here as anywhere else, means you can express any opinion you like. Directives and spam are not opinions.
<br><br>5. Accounts with no public posts may be purged after two weeks
<br><br>6. We will take down anything that gets us into legal trouble.
<hr> Services Offered
<br><br><a href="https://git.poster.place">1. Git</a>
<br><br>2. Pleroma Access (This Server)
<br><br><a href="https://matrix.to/#/#main:poster.place">3. Matrix Chat Server (Like Discord).</a>
<hr>
</hr>

View File

@ -7,7 +7,7 @@ services:
- postgresql:/var/lib/postgresql
- ./saves:/saves
networks:
- pleroma
- akkoma
environment:
ENDPOINT: "localhost"
privileged: true
@ -21,13 +21,13 @@ services:
ports:
- "443:443"
networks:
- pleroma
- akkoma
environment:
ENDPOINT: "localhost"
privileged: true
networks:
pleroma:
akkoma:
volumes:
postgresql:

View File

@ -6,6 +6,7 @@ ENV SHELL="/bin/bash"
ADD start.sh /
ADD setup.sh /
ADD backup.sh /
ADD crontab /
RUN crontab /crontab

View File

@ -1,4 +1,2 @@
00 01 * * * bash /postgres.sh backup
00 23 * * * bash /postgres.sh vacuum
00 01 * * * bash /backup.sh
00 04 * * 7 su postgres -s $SHELL -lc "psql -d pleroma -c 'vacuum(full,analyse,verbose);'"