@@ -83,23 +83,24 @@ into it:
83
83
84
84
To generate a default config file and store it on your host system you need to
85
85
build the docker image and then run ` eggplant default_config ` in the resulting
86
- container:
86
+ container. To do that point ` docker build ` at the cloned repository and then
87
+ run ` docker run ` using the resulting image hash:
87
88
88
89
$ docker build eggplant
89
90
...
90
91
Successfully built <hash>
91
92
$ docker run -ti <hash> eggplant default_config > config.toml
92
93
93
- You need to modify the config file so that it points to the locations under
94
- which you plan to mount the cache directory, data directory and music
94
+ You need to modify the resulting config file so that it points to the locations
95
+ under which you plan to mount the cache directory, data directory and music
95
96
directory. I usually simply use ` /cache ` , ` /data ` and ` /music ` .
96
97
97
- One possible way of easily mounting everything is by using Docker Compose. I
98
+ One possible way of easily mounting everything is using Docker Compose. I
98
99
usually place the ` docker-compose.yaml ` file in the same directory in which I
99
100
cloned the eggplant repository:
100
101
101
102
$ ls
102
- docker-compose.yaml eggplant
103
+ docker-compose.yaml eggplant config.toml
103
104
104
105
The example ` docker-compose.yaml ` file for Eggplant could look like this:
105
106
@@ -109,7 +110,7 @@ The example `docker-compose.yaml` file for Eggplant could look like this:
109
110
eggplant:
110
111
build: ./eggplant
111
112
volumes:
112
- - /media/data/ music:/music:ro
113
+ - /host/path/to/ music/directory :/music:ro
113
114
- /host/path/to/data/directory:/data
114
115
- /host/path/to/cache/directory:/cache
115
116
- /host/path/to/config.toml:/etc/eggplant/config.toml
0 commit comments