Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ ADD resources /app/resources

COPY --from=build /build/dist .
COPY --from=build /build/package.json /build/pnpm-lock.yaml ./
COPY --from=build /build/migrations ./migrations
COPY --from=build /build/knexfile.js ./knexfile.js

RUN corepack enable && corepack prepare pnpm@$PNPM_VERSION --activate && pnpm install --prod --frozen-lockfile --silent

Expand Down
7 changes: 3 additions & 4 deletions deploy/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,17 @@ services:
retries: 10

nostream-migrate:
image: nostream-migrate:local
image: ghcr.io/cameri/nostream:main
pull_policy: never
container_name: nostream-migrate
user: node:node
command: ['node_modules/.bin/knex', 'migrate:latest']
environment:
DB_HOST: nostream-db
DB_PORT: 5432
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
volumes:
- ./migrations:/code/migrations
- ./knexfile.js:/code/knexfile.js
depends_on:
nostream-db:
condition: service_healthy
Expand Down
Loading