Beginner, advanced, expert level Rust training material
docker pull library/rust-training
docker run -d --name rusttraining -p 3000:3000 --restart always rust-training:local
podman run -d --name rusttraining -p 3000:3000 --restart always rust-training:local
skopeo inspect docker://docker.io/library/rust-training:local
oras pull rust-training:local
docker compose up -d
name: rust-training
services:
books:
build:
# Context is the repo root: the build needs the book sources and the
# xtask crate, which live above this file.
context: ..
dockerfile: docker/Dockerfile
image: rust-training:local
container_name: rust-training-books
# Host port is configurable; the container always listens on 8080 because
# nginx-unprivileged runs as a non-root user.
ports:
- "${PORT:-3000}:8080"
restart: unless-stopped
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/"]
interval: 30s
timeout: 5s
start_period: 5s
retries: 3