Giter Club home page Giter Club logo

replicatr-docker's Introduction

replicatr-docker

A simple Dockerfile to build/run replicatr Nostr relay.

Docker

Dockerfile:

FROM golang:1.22.2-alpine AS builder
RUN apk update && apk add --no-cache git gcc g++
RUN git clone https://github.com/Hubmakerlabs/replicatr.git /app
WORKDIR /app 
RUN go mod download
RUN GOOS=linux GOARCH=amd64 go build -o replicatr

FROM alpine:edge
RUN apk add --no-cache libstdc++
WORKDIR /
COPY --from=builder /app/replicatr . 
EXPOSE 3334
CMD ["/replicatr" ]

build:

docker build -t YourUserName/replicatr-docker .

docker-compose.yml :

version: '3.8'
services:

  replicatr-docker:
    image: pastagringo/replicatr-docker
    container_name: replicatr-docker
    ports:
      - 3334:3334

composing:

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

You can check if the Nostr relay is working from: https://nostrrr.com/relay/YourNostrRelayUL
Nostrrr: https://nostrrr.com/relay/replicatr.fractalized.net
Nostr.watch: https://nostr.watch/relay/replicatr.fractalized.net
Docker hub: https://hub.docker.com/r/pastagringo/replicatr-docker (15.44 MB)

replicatr-docker's People

Contributors

pastagringo 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.