Fixed docker

This commit is contained in:
Kizuren 2025-12-09 02:08:38 +01:00
parent 8729e57def
commit 6e9e30f82c
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/next.config.ts ./next.config.ts COPY --from=builder /app/next.config.ts ./next.config.ts
RUN bun install --production RUN bun install --production
RUN bun add typescript
EXPOSE 3000 EXPOSE 3000
CMD ["bun", "run", "start"] CMD ["bun", "run", "start"]

View file

@ -7,7 +7,7 @@ services:
ports: ports:
- "3000:3000" - "3000:3000"
environment: environment:
- MONGO_URI=mongodb://justasuser:veryimportantpasswd@mongo:27017/ulinkshortener?authSource=admin - MONGO_URI=mongodb://justauser:veryimportantpasswd@mongo:27017/ulinkshortener?authSource=admin
- MONGO_DB_NAME=ulinkshortener - MONGO_DB_NAME=ulinkshortener
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL} - NEXTAUTH_URL=${NEXTAUTH_URL}