chore: update readme with deployment instructions
This commit is contained in:
parent
ecaa321547
commit
d2ba86dfd2
1 changed files with 20 additions and 3 deletions
23
README.md
23
README.md
|
@ -57,15 +57,32 @@ Require authentication for certain uploads
|
|||
| NO_AUTH_LARGE_FILE_MAX_TIME | |
|
||||
| NO_AUTH_LARGE_FILE_SIZE | |
|
||||
|
||||
## compiling
|
||||
## Deploying using Docker
|
||||
|
||||
```sh
|
||||
# Clone the repository
|
||||
git clone https://git.ctdo.de/neri/datatrash
|
||||
cd datatrash
|
||||
# Copy and update the docker-compose.yml
|
||||
cp docker-compose.yml.sample docker-compose.yml
|
||||
$EDITOR docker-compose.yml
|
||||
# Start the container
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Compiling the binary
|
||||
|
||||
When you have a [rust toolchain](https://rustup.rs/) installed:
|
||||
|
||||
```sh
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
or
|
||||
or when you have docker installed:
|
||||
|
||||
```sh
|
||||
docker build -t datatrash .
|
||||
docker cp datatrash:/home/rust/.cargo/bin/datatrash datatrash
|
||||
id=$(docker create datatrash)
|
||||
docker cp $id:/opt/datatrash/datatrash datatrash
|
||||
docker rm -v $id
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue