Skip to content

Commit a1ece8a

Browse files
committed
Make containerised setups work on arm64 (Apple silicon)
1 parent 3da8d82 commit a1ece8a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.devcontainer/Dockerfile.postgres

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM postgres:15
2+
3+
RUN apt-get update \
4+
&& apt-get install --no-install-recommends -y \
5+
postgresql-15-postgis-3

.devcontainer/compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ services:
3636
restart: unless-stopped
3737

3838
postgres:
39-
image: postgis/postgis:15-3.5
39+
build:
40+
context: .
41+
dockerfile: ./Dockerfile.postgres
4042
restart: unless-stopped
4143
networks:
4244
- default

docker/postgres/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM postgis/postgis:14-3.5
1+
FROM postgres:14
2+
3+
RUN apt-get update \
4+
&& apt-get install --no-install-recommends -y \
5+
postgresql-14-postgis-3
26

37
# Add db init script to install OSM-specific Postgres user.
48
ADD docker/postgres/openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/

0 commit comments

Comments
 (0)