Simple dockerized Rust/Axum based HTTP server for demo purposes.
From the workspace root directory:
RUST_LOG=hello_rs=debug,info \
cargo run -p hello-rs \
| jq
See config/default.yaml
or override settings via env vars. See
configured for details.
Example:
RUST_LOG=hello_rs=debug,info \
APP__API__PORT=8080 \
cargo run -p hello-rs \
| jq
To build the Docker image, from the workspace root directory:
docker build \
-t hseeberger/hello-rs \
--build-arg RUST_VERSION=1.70.0 \
.
To run the Docker image:
docker run \
-p 8080:80 \
-e RUST_LOG=info,hello_rs=debug \
hseeberger/hello-rs:latest
This code is open source software licensed under the Apache 2.0 License.