complete this
This commit is contained in:
parent
89db4a1310
commit
55b06c9d66
37
README.md
Normal file
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:
|
frontend:
|
||||||
image: fascinated/paste-frontend:latest
|
image: fascinated/paste-frontend:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
NEXT_PUBLIC_API_ENDPOINT: http://localhost:3005
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- "3000:3000"
|
||||||
backend:
|
backend:
|
||||||
image: fascinated/paste-backend:latest
|
image: fascinated/paste-backend:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./application.yml:/home/container/application.yml
|
||||||
ports:
|
ports:
|
||||||
- 3005:3000
|
- "3005:3000"
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:latest
|
image: mongo:latest
|
||||||
restart: always
|
restart: always
|
||||||
@ -17,6 +21,6 @@ services:
|
|||||||
MONGO_INITDB_ROOT_USERNAME: root
|
MONGO_INITDB_ROOT_USERNAME: root
|
||||||
MONGO_INITDB_ROOT_PASSWORD: root
|
MONGO_INITDB_ROOT_PASSWORD: root
|
||||||
ports:
|
ports:
|
||||||
- 27017:27017
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data/db
|
- ./data:/data/db
|
Reference in New Issue
Block a user