Reduce number of seeded users for faster start
This commit is contained in:
@ -11,6 +11,7 @@ RUN npm ci
|
||||
FROM deps AS develop
|
||||
WORKDIR /app
|
||||
COPY dev-entrypoint.sh /entrypoint.sh
|
||||
COPY .env.example /app/.env
|
||||
RUN chmod +x /entrypoint.sh
|
||||
RUN cat /entrypoint.sh
|
||||
ENV NODE_ENV=development
|
||||
|
@ -9,7 +9,7 @@ export default class extends BaseSeeder {
|
||||
console.log('Database already seeded, skipping...')
|
||||
return
|
||||
}
|
||||
const users = Array.from({ length: 1000 }).map(() => ({
|
||||
const users = Array.from({ length: 200 }).map(() => ({
|
||||
fullName: faker.person.fullName(),
|
||||
email: faker.internet.email(),
|
||||
password: 'password123',
|
||||
|
@ -4,7 +4,6 @@ services:
|
||||
build:
|
||||
context: backend
|
||||
target: develop
|
||||
env_file: ./backend/.env
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- node_modules:/app/node_modules
|
||||
|
@ -39,8 +39,6 @@ services:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
healthcheck:
|
||||
test: pg_isready --d postgres --user postgres
|
||||
interval: 5s
|
||||
|
Reference in New Issue
Block a user