mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Make docker compose the recommended method of usage
This commit is contained in:
parent
99757dceb6
commit
0367e74a7c
1 changed files with 10 additions and 9 deletions
19
README.md
19
README.md
|
@ -47,12 +47,20 @@ whatever reason), you can message me through Github issues.
|
|||
![Screenshot](./screenshot.png)
|
||||
|
||||
# Usage
|
||||
## Using `docker compose` (Recommended method)
|
||||
There is a sample `docker-compose.yml` file in this repository. It contains
|
||||
everything needed for a basic install. You can use it as a base, modifying
|
||||
it as needed. Run it with
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Building from source
|
||||
Clone this repository
|
||||
```
|
||||
git clone https://gitlab.com/SinTan1729/simply-shorten
|
||||
```
|
||||
## Building from source
|
||||
Gradle 6.x.x and JDK 11 are required. Other versions are not tested
|
||||
Note that Gradle 6.x.x and JDK 11 are required. Other versions are not tested
|
||||
### 1. Build the `.jar` file
|
||||
```
|
||||
gradle build --no-daemon
|
||||
|
@ -101,13 +109,6 @@ docker run -p 4567:4567 \
|
|||
-e db_url=/urls.sqlite \
|
||||
-d simply-shorten:latest
|
||||
```
|
||||
## `docker-compose`
|
||||
There is a sample `docker-compose.yml` file in this repository. It contains
|
||||
everything needed for a basic install. You can use it as a base, modifying
|
||||
it as needed. Run it with
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Disable authentication
|
||||
As requested in #5, it is possible to completely disable the authentication.
|
||||
|
|
Loading…
Reference in a new issue