Add volume support to allow loader to pass data to server.

This commit is contained in:
iamBadgers
2025-06-03 01:57:06 -07:00
parent 9801ba4ba6
commit 62ed1badc2
5 changed files with 19 additions and 6 deletions

View File

@@ -32,6 +32,8 @@ COPY --from=frontend /frontend/dist /srv/cprush-stats/frontend
COPY --from=backend /backend/dist /srv/cprush-stats
COPY --from=backend /backend/package.json /srv/cprush-stats/package.json
VOLUME /srv/cprush-stats/data
EXPOSE 3001
ENV NODE_ENV=production
ENV MEMCACHE_ADDR="localhost:11211"

View File

@@ -25,7 +25,7 @@ export const roleNames: RoleName[] = [
'Rocker'
]
const databasePath = './testdb.db'
const databasePath = './data/testdb.db'
export const database = new Sequelize({
dialect: 'sqlite',