Skip to content

Latest commit

 

History

History

README.md

paste-server-rs

paste-server-rs

Develop (with docker)

Build:

docker compose build

Run:

docker compose up

Test:

echo "test" | curl -F "c=@-" http://localhost:2334/ | jq

Clean up (including data):

docker compose down -v

Deploy

At /opt/paste-server-rs/:

  • Copy or link the production.compose.yml to compose.yml
  • Create a .env file
  • Run docker compose up -d

.env file example:

POSTGRES_USER=postgres
POSTGRES_PASSWORD=somepassword
POSTGRES_DB=paste