This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user