We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker compose build
docker compose up
arm64
postgis
amd64
x86_64
I found a workaround using a community-run fork of the postgis image.
compose.yml:
compose.yml
services: db: container_name: db - build: - context: . - dockerfile: Dockerfile-db + image: imresamu/postgis-arm64:16-3.4.3-bullseye restart: always environment: POSTGRES_USER: nld_db_user POSTGRES_PASSWORD: nld_db_pass POSTGRES_DB: nld_dev_db ports: - 6543:5432 volumes: - ./db:/docker-entrypoint-initdb.d/ - database_volume:/var/lib/postgresql/data volumes: database_volume:
.env:
.env
DATABASE_URL="postgresql://nld_db_user:nld_db_pass@localhost:6543/nld_dev_db?schema=public" DIRECT_URL="postgresql://nld_db_user:nld_db_pass@localhost:6543/nld_dev_db?schema=public"
Then:
npx prisma migrate dev
npx prisma db seed
I deleted Dockerfile-db and the setup seems to work just fine, I think that this could be removed in main as well.
Dockerfile-db
main
I'm thinking the postgis image already includes functioning Postgres, so it's possibly redundant.
The text was updated successfully, but these errors were encountered:
Closing this because there's nothing we can do about it until postgis officially supports arm64 images, which seems like a long horizon.
But at least this is here in case others run into the same thing
Sorry, something went wrong.
No branches or pull requests
docker compose build
anddocker compose up
will fail on Mac computers newer than 2020+, aka anything with Apple Silicon orarm64
hardware.postgis
Docker image we use doesn't officially supportarm64
hardware vs. theamd64
/x86_64
in Intel chips.Solution
I found a workaround using a community-run fork of the
postgis
image.compose.yml
:.env
:Then:
docker compose build
docker compose up
npx prisma migrate dev
npx prisma db seed
I deleted
Dockerfile-db
and the setup seems to work just fine, I think that this could be removed inmain
as well.I'm thinking the
postgis
image already includes functioning Postgres, so it's possibly redundant.The text was updated successfully, but these errors were encountered: