Skip to content

Add 'platform: linux/amd64' to postgis compose.yml#5

Merged
jiayuasu merged 1 commit intoapache:mainfrom
petern48:docker_compose
Aug 29, 2025
Merged

Add 'platform: linux/amd64' to postgis compose.yml#5
jiayuasu merged 1 commit intoapache:mainfrom
petern48:docker_compose

Conversation

@petern48
Copy link
Contributor

When running docker compose up -d on a mac, I get the following message since my machine is not amd64. I've been manually adding it to the file each time I need to use it, but it would be nice to just have it already there. It looks like amd64 is the only architecture they support, so I think it's safe to explicitly include for everyone.

docker compose up -d
[+] Running 3/3
 ✔ Network sedona-db_default                                                                                                                              Created                                                                                               0.0s 
 ✔ Container sedona-db-postgis-1                                                                                                                          Started                                                                                               0.1s 
 ! postgis The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

@petern48
Copy link
Contributor Author

Maybe there's a more proper way to handle this. I would just like to get it solved because it surely is inconvenient.

Copy link
Member

@paleolimbot paleolimbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! No idea why this doesn't show up for me. It is probably important when benchmarking (i.e., PostGIS will be super slow unless you're actually on x86).

@petern48 petern48 marked this pull request as ready for review August 29, 2025 19:05
@jiayuasu jiayuasu merged commit 01b613a into apache:main Aug 29, 2025
3 checks passed
@petern48 petern48 deleted the docker_compose branch September 3, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants