Update mailhog platform
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
## Backend (local)
|
## Backend (local)
|
||||||
|
|
||||||
1. Copy [`.env.example`](.env.example) to `.env.local` and set `SESSION_SECRET` (at least 16 characters).
|
1. Copy [`.env.example`](.env.example) to `.env.local` and set `SESSION_SECRET` (at least 16 characters).
|
||||||
2. Start Postgres (and optional Mailhog): `docker compose up -d postgres mailhog`
|
2. Start Postgres (and optional Mailhog): `docker compose up -d postgres mailhog`. On Apple Silicon, Mailhog is configured for `linux/amd64` in [`docker-compose.yml`](docker-compose.yml) (clear emulation path). You can use `docker compose up -d postgres` only and read OTPs from the dev server log instead of Mailhog (see `.env.example`).
|
||||||
3. Install dependencies: `npm ci`
|
3. Install dependencies: `npm ci`
|
||||||
4. Apply migrations: `npx prisma migrate dev`
|
4. Apply migrations: `npx prisma migrate dev`
|
||||||
5. Run the app: `npm run dev`
|
5. Run the app: `npm run dev`
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
# Official image is amd64-only; pin platform so Apple Silicon uses emulation cleanly.
|
||||||
mailhog:
|
mailhog:
|
||||||
image: mailhog/mailhog:v1.0.1
|
image: mailhog/mailhog:v1.0.1
|
||||||
|
platform: linux/amd64
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "1025:1025"
|
- "1025:1025"
|
||||||
|
|||||||
Generated
+640
-555
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -55,7 +55,7 @@
|
|||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"next": "^16.0.0",
|
"next": "^16.0.0",
|
||||||
"next-intl": "^3.26.5",
|
"next-intl": "^3.26.5",
|
||||||
"nodemailer": "^6.9.16",
|
"nodemailer": "^8.0.4",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^19.0.0",
|
||||||
"zod": "^3.25.76"
|
"zod": "^3.25.76"
|
||||||
|
|||||||
Reference in New Issue
Block a user