complete this

This commit is contained in:
Lee 2024-04-23 19:03:45 +01:00
parent 89db4a1310
commit 55b06c9d66
2 changed files with 44 additions and 3 deletions

37
README.md Normal file

@ -0,0 +1,37 @@
# Paste Docker
Paste is a simple self-hosted pastebin service that you can run on your own server.
## Prerequisites
- Docker
## Installation
- Clone this repository
```bash
git clone https://git.fascinated.cc/Paste/Docker
```
- Change directory
```bash
cd Docker
```
- Download the latest `application.yml`
```bash
wget https://git.fascinated.cc/Paste/Backend/raw/branch/master/src/main/resources/application.yml
```
- Update the `application.yml` with your configuration
- Start Paste
```bash
docker compose up -d
```
- Access Paste at `http://localhost:3000`

@ -3,13 +3,17 @@ services:
frontend:
image: fascinated/paste-frontend:latest
restart: always
environment:
NEXT_PUBLIC_API_ENDPOINT: http://localhost:3005
ports:
- 3000:3000
- "3000:3000"
backend:
image: fascinated/paste-backend:latest
restart: always
volumes:
- ./application.yml:/home/container/application.yml
ports:
- 3005:3000
- "3005:3000"
mongo:
image: mongo:latest
restart: always
@ -17,6 +21,6 @@ services:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
- "27017:27017"
volumes:
- ./data:/data/db