https://github.com/ak1m1tsu/pastebin
pastebin clone
https://github.com/ak1m1tsu/pastebin
docker go grafana nginx pastebin postgresql prometheus redis
Last synced: 2 months ago
JSON representation
pastebin clone
- Host: GitHub
- URL: https://github.com/ak1m1tsu/pastebin
- Owner: ak1m1tsu
- Created: 2023-10-10T15:05:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T06:01:47.000Z (over 2 years ago)
- Last Synced: 2025-02-08T01:14:15.604Z (over 1 year ago)
- Topics: docker, go, grafana, nginx, pastebin, postgresql, prometheus, redis
- Language: Go
- Homepage: https://pastebin.com
- Size: 304 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pastebin
## How to run?
Rename `.env.example` to `.env` and run next command:
```shell
make docker/up
```
Then in `postgres` container shell run SQL commands from `schema/schema.sql`
```shell
docker compose exec postgres psql -U pastebin -d pastebin
```
Next run migrations:
```shell
migrate -path=./migrations -database 'postgres://pastebin:pastebin@localhost:5432/pastebin?sslmode=disable&search_path=public' up
```
Finally go to `localhost:8085/api/v1/swagger/index.html` to see swagger API docs.