Pinry - Self-Hosted Pinterest

The open-source core of Pinry, a tiling image board system for people who want to save, tag, and share images, videos and webpages in an easy to skim through format.

Installation

version: '3.3'
services:
pinry:
ports:
- 8981:80
volumes:
- pinry:/data #You can mount 'pinry' however you'd like. This is just one option
image: getpinry/pinry

volumes:
pinry:

Pinry Disable Registration

Per Pinry's docs:

If you use that command to create superuser inside docker, you could first exec to docker via command like docker exec -it <container-id> bash and then use python manage.py createsuperuser --settings=pinry.settings.docker

Using Portainer

Login to portainer and find your Pinry container:

image-1648337203880.png

Now click the "Exec Console" icon:

image-1648337266019.png

Click "Connect":

image-1648337295473.png

Run the following commands:

cd /data

apt update

Wait for the update to complete. 

apt install nano

nano local_settings.py

This will take you into editing mode for the local_settings.py file.

Using your arrow keys, scroll down until you find "ALLOW_NEW_REGISTRATIONS = True":

image-1648337630536.png

Change "True" to "False":

image-1648337579173.png

Save and exit: CTRL+O, Enter, CTRL+X

Now go back to your container list and restart the container.

Once the container is back up and running, the "Register" button will still show on the site, but nothing will happen when the form is filled out and submitted.

Create Super Admin / Reset Passwords

Per Pinry's docs:

Currently we don't have a good "forgot my password" method on Pinry since that generally requires an email to be sent. The current method for changing passwords involves:

If you use that command to create superuser inside docker, you could first exec to docker via command like docker exec -it <container-id> bash and then use python manage.py createsuperuser --settings=pinry.settings.docker

Using Portainer

Login to portainer and find your Pinry container:

image-1648337203880.png

Now click the "Exec Console" icon:

image-1648337266019.png

Click "Connect":

image-1648337295473.png

Run the following commands:

python manage.py createsuperuser --settings=pinry.settings.docker

You'll be prompted to create a new super user:

image-1648337877943.png

Enter a new username for the super user account and press Enter.

Now enter an email address for the user. Press Enter.

Now enter a password for the user. Press Enter.

Re-enter the same password for the user. Press Enter.

Login as Admin

Now you can go to: https://your-pinry-url.com/admin and login with the newly created super user account. From here you can manage users including creating/deleting them as well as updating their password.

image-1648338080947.png

Browser Extensions

If you'd like to install either extension they are available at:

Once you've added the extension, open it up and click "Options".

Enter your Pinry URL into the URL textbox:

image-1648338259958.png

If your URL is correct/reachable, the box will be green instead of red. You can check the "context menu" option if you want additional functionality.

Click the X in the top right and you're set.

Now you can right click images and whatnot to save to your Pinry instance.

In your extension settings, you can also decide if you want the extension to work in Incognito mode as well.

Additional Resources

Additional resources can be found here: