Migrate stack to SQLite and set Coolify defaults

This commit is contained in:
2026-02-26 15:45:22 -05:00
parent d1df80dfc2
commit f2ac1c426e
18 changed files with 1266 additions and 2218 deletions

View File

@@ -5,7 +5,7 @@ RUN bun install --frozen-lockfile
FROM deps AS builder
ARG NEXT_PUBLIC_API_URL=
ARG DATABASE_URL=postgres://postgres:postgres@localhost:5432/fiscal_clone
ARG DATABASE_URL=file:data/fiscal.sqlite
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
ENV DATABASE_URL=${DATABASE_URL}
ENV NEXT_TELEMETRY_DISABLED=1
@@ -29,8 +29,10 @@ COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/package.json ./package.json
COPY --from=deps /app/bun.lock ./bun.lock
RUN mkdir -p /app/data /app/.workflow-data
EXPOSE 3000
ENV PORT=3000
CMD ["sh", "-c", "./node_modules/.bin/drizzle-kit migrate --config /app/drizzle.config.ts && ./node_modules/.bin/workflow-postgres-setup && bun server.js"]
CMD ["sh", "-c", "./node_modules/.bin/drizzle-kit migrate --config /app/drizzle.config.ts && bun server.js"]