mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 08:42:05 +10:00
Update Dockerfile
* Add volume to docker compose file
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -16,13 +16,19 @@ RUN apk add --no-cache curl bash
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy apps
|
||||||
COPY --from=builder /app/apps/server/dist /app/apps/server/dist
|
COPY --from=builder /app/apps/server/dist /app/apps/server/dist
|
||||||
COPY --from=builder /app/apps/client/dist /app/apps/client/dist
|
COPY --from=builder /app/apps/client/dist /app/apps/client/dist
|
||||||
COPY --from=builder /app/apps/server/package.json /app/apps/server/package.json
|
COPY --from=builder /app/apps/server/package.json /app/apps/server/package.json
|
||||||
|
|
||||||
|
# Copy packages
|
||||||
|
COPY --from=builder /app/packages/editor-ext/dist /app/packages/editor-ext/dist
|
||||||
|
COPY --from=builder /app/packages/editor-ext/package.json /app/packages/editor-ext/package.json
|
||||||
|
|
||||||
|
# Copy root package files
|
||||||
COPY --from=builder /app/package.json /app/package.json
|
COPY --from=builder /app/package.json /app/package.json
|
||||||
COPY --from=builder /app/packages/ /app/packages/
|
|
||||||
COPY --from=builder /app/pnpm*.yaml /app/
|
COPY --from=builder /app/pnpm*.yaml /app/
|
||||||
# should optimize packages
|
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
RUN chown -R node:node /app
|
RUN chown -R node:node /app
|
||||||
|
|||||||
@ -11,9 +11,12 @@ services:
|
|||||||
APP_SECRET: 'REPLACE_WITH_LONG_SECRET'
|
APP_SECRET: 'REPLACE_WITH_LONG_SECRET'
|
||||||
DATABASE_URL: 'postgresql://postgres:password@db:5432/docmost?schema=public'
|
DATABASE_URL: 'postgresql://postgres:password@db:5432/docmost?schema=public'
|
||||||
REDIS_URL: 'redis://redis:6379'
|
REDIS_URL: 'redis://redis:6379'
|
||||||
|
STORAGE_DRIVER: 'local'
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- local_storage:/app/data/storage
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
@ -32,5 +35,6 @@ services:
|
|||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
local_storage:
|
||||||
db_data:
|
db_data:
|
||||||
redis_data:
|
redis_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user