Skip to content

Commit

Permalink
Add PostGIS extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mveytsman committed Sep 22, 2021
1 parent f334919 commit 676ccc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ FROM flyio/stolon:cab0fc5 as stolon
FROM wrouesnel/postgres_exporter:latest AS postgres_exporter

FROM postgres:${PG_VERSION}
ARG VERSION
ARG POSTGIS_MAJOR=3
ARG PG_MAJOR=12

LABEL fly.app_role=postgres_cluster
LABEL image_version=${VERSION}

RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates curl bash dnsutils vim-tiny procps jq \
postgis postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR} postgresql-${PG_MAJOR}-postgis-${POSTGIS_MAJOR}-scripts \
&& apt autoremove -y

COPY --from=stolon /go/src/app/bin/* /usr/local/bin/
Expand Down
5 changes: 3 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
app = "postgres-ha-example"
app = "bike-brigade-db-staging"

# stop accepting new connections while existing sessions complete
kill_signal = "SIGTERM"
kill_timeout = 300
services = []
Expand Down Expand Up @@ -35,7 +36,7 @@ services = []

[env]
BACKEND_STORE = "consul"
PRIMARY_REGION = "ord"
PRIMARY_REGION = "ewr"

[experimental]
allowed_public_ports = []
Expand Down

0 comments on commit 676ccc2

Please sign in to comment.