diff --git a/.justfile b/.justfile index c0b2775..b0d56b2 100644 --- a/.justfile +++ b/.justfile @@ -96,4 +96,10 @@ dbg-test test_name $RUST_LOG="debug": cargo test --package rustic_server --lib -- {{ test_name }} --exact --nocapture --show-output build-docker version="0.4.0": - podman build containers --build-arg RUSTIC_SERVER_VERSION=v{{ version }} --format docker --tag rustic_server:v{{ version }} \ No newline at end of file + podman build containers --build-arg RUSTIC_SERVER_VERSION=v{{ version }} --format docker --tag rustic_server:v{{ version }} + +server-up: + uv --directory containers run podman-compose -f docker-compose.yml up --detach + +server-down: + uv --directory containers run podman-compose -f docker-compose.yml down diff --git a/containers/docker-compose.yml b/containers/docker-compose.yml index e5ce433..6ac4761 100644 --- a/containers/docker-compose.yml +++ b/containers/docker-compose.yml @@ -18,7 +18,7 @@ services: - RUSTIC_SERVER_DATA_DIR=/var/lib/rustic-server/data - RUSTIC_SERVER_QUOTA=0 # 0 means no quota - RUSTIC_SERVER_VERBOSE=false - - RUSTIC_SERVER_CONFIG_PATH= + # - RUSTIC_SERVER_CONFIG_PATH=/etc/rustic-server/config/server.toml - RUSTIC_SERVER_DISABLE_AUTH=false - RUSTIC_SERVER_HTPASSWD_FILE=/var/lib/rustic-server/data/.htpasswd - RUSTIC_SERVER_PRIVATE_REPOS=true @@ -45,7 +45,8 @@ services: limits: cpus: '0.50' memory: 512M + restart: unless-stopped networks: rustic-network: - driver: bridge \ No newline at end of file + driver: bridge