Skip to content

Commit 2c40401

Browse files
committed
fix: update storage paths in Dockerfile and MelodeeDbContext to reflect new directory structure
1 parent 9b4284d commit 2c40401

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ RUN groupadd -r melodee && useradd -r -g melodee -m melodee
7171

7272
# Create volume directories
7373
# These serve as mount points; the actual volumes will overlay them
74-
# Note: podcasts and themes are subdirectories of storage (/app/storage/podcasts, /app/storage/themes)
75-
RUN mkdir -p /app/storage /app/storage/podcasts /app/storage/themes /app/inbound /app/staging /app/user-images /app/playlists /app/templates /app/Logs \
74+
# Note: podcasts and themes can be at /app/podcasts or /app/storage/podcasts depending on DB config
75+
RUN mkdir -p /app/storage /app/storage/podcasts /app/storage/themes /app/podcasts /app/themes /app/inbound /app/staging /app/user-images /app/playlists /app/templates /app/Logs \
7676
&& chown -R melodee:melodee /app
7777

7878
# Set environment variables

src/Melodee.Common/Data/MelodeeDbContext.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Guid SeedGuid(string entityType, int id) =>
133133
Name = "Inbound",
134134
Description =
135135
"Files in this directory are scanned and Album information is gathered via processing.",
136-
Path = "/storage/inbound/",
136+
Path = "/app/inbound/",
137137
Type = (int)LibraryType.Inbound,
138138
CreatedAt = seedDataTimestamp
139139
},
@@ -144,7 +144,7 @@ Guid SeedGuid(string entityType, int id) =>
144144
Name = "Staging",
145145
Description =
146146
"The staging directory to place processed files into (Inbound -> Staging -> Library).",
147-
Path = "/storage/staging/",
147+
Path = "/app/staging/",
148148
Type = (int)LibraryType.Staging,
149149
CreatedAt = seedDataTimestamp
150150
},
@@ -155,7 +155,7 @@ Guid SeedGuid(string entityType, int id) =>
155155
Name = "Storage",
156156
Description =
157157
"The library directory to place processed, reviewed and ready to use music files into.",
158-
Path = "/storage/library/",
158+
Path = "/app/storage/",
159159
Type = (int)LibraryType.Storage,
160160
CreatedAt = seedDataTimestamp
161161
},
@@ -165,7 +165,7 @@ Guid SeedGuid(string entityType, int id) =>
165165
ApiKey = SeedGuid("Library", 4),
166166
Name = "User Images",
167167
Description = "Library where user images are stored.",
168-
Path = "/storage/images/users/",
168+
Path = "/app/user-images/",
169169
Type = (int)LibraryType.UserImages,
170170
CreatedAt = seedDataTimestamp
171171
},
@@ -175,7 +175,7 @@ Guid SeedGuid(string entityType, int id) =>
175175
ApiKey = SeedGuid("Library", 5),
176176
Name = "Playlist Data",
177177
Description = "Library where playlist data is stored.",
178-
Path = "/storage/playlists/",
178+
Path = "/app/playlists/",
179179
Type = (int)LibraryType.Playlist,
180180
CreatedAt = seedDataTimestamp
181181
},
@@ -185,7 +185,7 @@ Guid SeedGuid(string entityType, int id) =>
185185
ApiKey = SeedGuid("Library", 6),
186186
Name = "Templates",
187187
Description = "Library where templates are stored, organized by language code.",
188-
Path = "/storage/templates/",
188+
Path = "/app/templates/",
189189
Type = (int)LibraryType.Templates,
190190
CreatedAt = seedDataTimestamp
191191
},
@@ -195,7 +195,7 @@ Guid SeedGuid(string entityType, int id) =>
195195
ApiKey = SeedGuid("Library", 7),
196196
Name = "Podcasts",
197197
Description = "Library where podcast media files are stored.",
198-
Path = "/storage/podcasts/",
198+
Path = "/app/podcasts/",
199199
Type = (int)LibraryType.Podcast,
200200
CreatedAt = seedDataTimestamp
201201
},
@@ -205,7 +205,7 @@ Guid SeedGuid(string entityType, int id) =>
205205
ApiKey = SeedGuid("Library", 8),
206206
Name = "Themes",
207207
Description = "Library where custom theme packs are stored.",
208-
Path = "/storage/themes/",
208+
Path = "/app/themes/",
209209
Type = (int)LibraryType.Theme,
210210
CreatedAt = seedDataTimestamp
211211
});

0 commit comments

Comments
 (0)