You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application can run without copying `config.yaml` into the container. If no config file exists, it will automatically create one with sensible defaults. Use environment variables to override specific settings:
28
+
The application can run without copying `config.yaml` into the container. If no config file exists, it will automatically create one with sensible defaults.
29
+
30
+
#### Environment Variable Support
31
+
32
+
Soulsolid supports environment variables in configuration files using the `!env_var` tag:
33
+
34
+
```yaml
35
+
telegram:
36
+
token: !env_var TELEGRAM_BOT_TOKEN
37
+
metadata:
38
+
providers:
39
+
discogs:
40
+
secret: !env_var DISCOGS_API_KEY
41
+
```
42
+
43
+
The application will fail to start if a referenced environment variable is not set.
29
44
30
45
```bash
31
46
# Build the image
32
47
podman build -t soulsolid .
33
48
34
-
# Run with environment variables (config.yaml will be auto-created if missing)
49
+
# Run with environment variables
35
50
podman run -d \
36
51
--name soulsolid \
37
52
-p 3535:3535 \
38
53
-v /host/music:/app/library \
39
54
-v /host/downloads:/app/downloads \
40
55
-v /host/logs:/app/logs \
41
-
-v /host/library.db:/app/library.db \
42
-
-v /host/config.yaml:/app/config.yaml \
43
-
-e TELEGRAM_TOKEN="your_token" \
56
+
-v /host/library.db:/data/library.db \
57
+
-v /host/config.yaml:/config/config.yaml \
44
58
soulsolid
45
59
```
46
60
61
+
Optionally, to hide secrets, you can `!env_var` syntax in anywhere in you `config.yaml`:
62
+
```yaml
63
+
telegram:
64
+
token: !env_var TELEGRAM_BOT_TOKEN
65
+
metadata:
66
+
providers:
67
+
discogs:
68
+
secret: !env_var DISCOGS_API_KEY
69
+
```
70
+
47
71
The web interface will be available at `http://localhost:3535`.
0 commit comments