Open Hooobot opened 9 months ago
@Hooobot Could you try updating your docker compose file? https://stackoverflow.com/a/68434363
platform: "linux/arm64"
https://github.com/CodeWithAloha/HIERR/blob/main/compose.yaml#L2
Somewhere in compose.yaml
within the sql
confirguation?
Unfortunately updating the docker compose to include ARM64 platform didn't seem to resolve it.
However, changing the sql image from mcr.microsoft.com/mssql/server:2017-latest
to mcr.microsoft.com/azure-sql-edge
did allow me to launch the sql docker container.
Unfortunately that still didn't seem to resolve the issue since as of September 2023, Microsoft azure-sql-edge seemed to no longer support ARM64 platforms.
After running
docker compose up -d
... The following errors appears:Attempted troubleshooting included running:
docker build --platform linux/arm64 .
but that requires a created DockerfileRunning SQLite instead of SQLServer is an alternative solution. This requires changing the
.env
file to include proper SQLite configuration in changing:DATABASE_URL="file:./db.sqlite"
EMAIL_SERVER
EMAIL_FROM
Additionally there requires a change in provider in theprisma/schema.prism
from "sqlserver" to "sqlite".. to match the proper SQLite dependencies.
Then, run:
npx prisma db push
npm run dev