:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 26s

This commit is contained in:
Your Name
2025-05-30 22:00:33 +12:00
parent 9ba0469dea
commit ce6357d99c
7 changed files with 18 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ docker build -t simple-object-storage .
docker run -d \
-p 8080:8080 \
-v /path/to/storage:/data/storage \
-v /path/to/config.json:/data/sos_config.json:ro \
-v /path/to/sos_config.json:/data/sos_config.json:ro \
--name object-storage \
simple-object-storage
```
@@ -50,7 +50,7 @@ This will:
- Mount your config directory to the container
- Run the service in detached mode
Ensure that the `storage_path` set in the `config.json` is `/data/storage`, the path inside the container.
Ensure that the `storage_path` set in the `sos_config.json` is `/data/storage`, the path inside the container.
### Using Docker Compose
@@ -65,7 +65,7 @@ services:
- "8080:8080"
volumes:
- /path/to/storage:/data/storage
- /path/to/config.json:/data/sos_config.json:ro
- /path/to/sos_config.json:/data/sos_config.json:ro
restart: unless-stopped
```
@@ -76,7 +76,7 @@ docker-compose up -d
## Configuration
The server can be configured by creating a JSON configuration file at `~/.config/simple_object_storage/config.json`. Default values are shown below (everything but write tokens), suitable for running in Docker.
The server can be configured by creating a JSON configuration file at `~/.config/simple_object_storage/sos_config.json`. Default values are shown below (everything but write tokens), suitable for running in Docker.
```json
{