Skip to content

Commit

Permalink
fix config not found due to empty, but set env var
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 18, 2024
1 parent 0db5f14 commit 592957a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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
5 changes: 3 additions & 2 deletions containers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,7 +45,8 @@ services:
limits:
cpus: '0.50'
memory: 512M
restart: unless-stopped

networks:
rustic-network:
driver: bridge
driver: bridge

0 comments on commit 592957a

Please sign in to comment.