Skip to content

Commit fadbcfa

Browse files
feat: add postgis (#94)
Co-authored-by: Karun Agarwal <113603846+singhalkarun@users.noreply.github.com>
1 parent 13ba904 commit fadbcfa

4 files changed

Lines changed: 24 additions & 1 deletion

File tree

common/postgis/docker-compose.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
services:
2+
postgis:
3+
image: postgis/postgis:16-3.4-alpine
4+
restart: always
5+
volumes:
6+
- postgis:/var/postgresql/data
7+
healthcheck:
8+
test: ["CMD-SHELL", "pg_isready -U postgres"]
9+
interval: 5s
10+
timeout: 5s
11+
retries: 5
12+
environment:
13+
POSTGIS_USER: ${POSTGIS_USER:?POSTGIS_USER is not set}
14+
POSTGIS_PASSWORD: ${POSTGIS_PASSWORD:?POSTGIS_PASSWORD is not set}
15+
16+
volumes:
17+
postgis:

common/sample.env

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ RABBITMQ_DEFAULT_USER=
5050
RABBITMQ_DEFAULT_PASSWORD=
5151

5252
#pgweb
53-
PGWEB_DATABASE_URL=
53+
PGWEB_DATABASE_URL=
54+
55+
#postgis
56+
POSTGIS_USER=
57+
POSTGIS_PASSWORD=

docker-compose.SDC.yaml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# - ./common/typesense/docker-compose.yaml
1212
# - ./common/kong/docker-compose.yaml
1313
# - ./common/dragonfly/docker-compose.yaml
14+
# - ./common/postgis/docker-compose.yaml
1415

1516
services:
1617
caddy:

docker-compose.yaml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# - ./common/kong/docker-compose.yaml
1515
# - ./common/pgweb/docker-compose.yaml
1616
# - ./common/dragonfly/docker-compose.yaml
17+
# - ./common/postgis/docker-compose.yaml
1718

1819
services:
1920
caddy:

0 commit comments

Comments
 (0)