Giter Club home page Giter Club logo

notepress-docker's Introduction

notepress-docker

Simple notepress docker image & docker-compose to self-host your own nostr blog!

SSL not yet supported but you can use Nginx Proxy Manager or Traefik to serve HTTPS

From notepress (utxo-one) : https://github.com/utxo-one/notepress

Demo: https://notepress.fractalized.net

How to use

Docker-compose.yml file:

version: '3.8'
services:

  notepress:
    container_name: notepress
    image: pastagringo/notepress-docker
    environment:
      - NPUB=npub1ky4kxtyg0uxgw8g5p5mmedh8c8s6sqny6zmaaqj44gv4rk0plaus3m4fd2
      - HEXKEY=b12b632c887f0c871d140d37bcb6e7c1e1a80264d0b7de8255aa1951d9e1ff79
      - RELAYS="wss://relay.utxo.one","wss://relay.bitcoinpark.com","wss://relay.damus.io","wss://nos.lol"
      - EXCLUDENOTES="ffa61fb02c3dda819f98a887df1c1ce9aa4c2b73d8035b4a03fa6bc94d484455","cc45a58d8c5f35ba15e38c9dd1bc03175e33e3dd13fa1247a7f1e217ed9ef409"
    ports:
      - 80:80
    restart: unless-stopped

Starting container with docker compose:

docker compose up -d && docker logs -f notepress

Welcome to:
                __                                
   ____  ____  / /____  ____  ________  __________
  / __ \/ __ \/ __/ _ \/ __ \/ ___/ _ \/ ___/ ___/
 / / / / /_/ / /_/  __/ /_/ / /  /  __(__  |__  ) 
/_/ /_/\____/\__/\___/ .___/_/   \___/____/____/  
                    /_/  version: master 1a3e01a

Notepress author: https://nosta.me/npub1utx00neqgqln72j22kej3ux7803c2k986henvvha4thuwfkper4s7r50e8
Docker image author: https://nosta.me/npub1ky4kxtyg0uxgw8g5p5mmedh8c8s6sqny6zmaaqj44gv4rk0plaus3m4fd2

Environment variables from compose file:
npub: npub1ky4kxtyg0uxgw8g5p5mmedh8c8s6sqny6zmaaqj44gv4rk0plaus3m4fd2
hexkey: b12b632c887f0c871d140d37bcb6e7c1e1a80264d0b7de8255aa1951d9e1ff79
relays: "wss://relay.utxo.one","wss://relay.bitcoinpark.com","wss://relay.damus.io","wss://nos.lol"
excludeNotes: "ffa61fb02c3dda819f98a887df1c1ce9aa4c2b73d8035b4a03fa6bc94d484455","cc45a58d8c5f35ba15e38c9dd1bc03175e33e3dd13fa1247a7f1e217ed9ef409"

Updating config.js file with variables...
Done ✅

Building notepress silently...
Done ✅

Copying build files...
Done ✅

Starting notepress...

2024/03/23 22:30:14 [notice] 1#1: using the "epoll" event method
2024/03/23 22:30:14 [notice] 1#1: nginx/1.25.4
2024/03/23 22:30:14 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10) 
2024/03/23 22:30:14 [notice] 1#1: OS: Linux 5.15.0-100-generic
2024/03/23 22:30:14 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/03/23 22:30:14 [notice] 1#1: start worker processes
2024/03/23 22:30:14 [notice] 1#1: start worker process 43
2024/03/23 22:30:14 [notice] 1#1: start worker process 44
2024/03/23 22:30:14 [notice] 1#1: start worker process 45
2024/03/23 22:30:14 [notice] 1#1: start worker process 4

Access to notepress at:

http://yourip:80

notepress-docker's People

Contributors

pastagringo avatar

Stargazers

Sam Korn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.