diff --git a/README.md b/README.md new file mode 100644 index 0000000..1f671e4 --- /dev/null +++ b/README.md @@ -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` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f96f8e4..7c2633e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file