mirror of
https://github.com/MrUnknownDE/unknownbin.git
synced 2026-04-19 14:23:44 +02:00
github readme sucks xd
This commit is contained in:
@@ -51,16 +51,15 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- '8080:8080'
|
||||||
```
|
```
|
||||||
|
```bash
|
||||||
```bash
|
|
||||||
docker run -d \
|
docker run -d \
|
||||||
-p 8080:8080 \
|
-p 8080:8080 \
|
||||||
-v /path/to/your/data:/usr/src/app/data \
|
-v /path/to/your/data:/usr/src/app/data \
|
||||||
--name my-unknownbin \
|
--name my-unknownbin \
|
||||||
ghcr.io/mrunknownde/unknownbin:main
|
ghcr.io/mrunknownde/unknownbin:main
|
||||||
```
|
```
|
||||||
|
|
||||||
**Explanation:**
|
**Explanation:**
|
||||||
* `-d`: Runs the container in the background (detached mode).
|
* `-d`: Runs the container in the background (detached mode).
|
||||||
* `-p 8080:8080`: Maps port 8080 on your host to port 8080 in the container. You can change the first number (e.g., `-p 3000:8080`) to use a different host port.
|
* `-p 8080:8080`: Maps port 8080 on your host to port 8080 in the container. You can change the first number (e.g., `-p 3000:8080`) to use a different host port.
|
||||||
* `-v /path/to/your/data:/usr/src/app/data`: **(Important!)** Mounts a directory from your host machine into the container to persist paste data. **Replace `/path/to/your/data`** with an actual path on your server (e.g., `/opt/unknownbin/data`).
|
* `-v /path/to/your/data:/usr/src/app/data`: **(Important!)** Mounts a directory from your host machine into the container to persist paste data. **Replace `/path/to/your/data`** with an actual path on your server (e.g., `/opt/unknownbin/data`).
|
||||||
|
|||||||
Reference in New Issue
Block a user