initial postgis db

This commit is contained in:
luptmoor
2026-02-24 20:20:36 +01:00
commit 5020d72382
3 changed files with 27 additions and 0 deletions

3
.env.example Normal file
View File

@@ -0,0 +1,3 @@
GEODB_USER=xxx
GEODB_PW=xxx
GEODB_NAME=xxx

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
geo-db-postgis:
image: postgis/postgis:15-3.3
container_name: geo-db-postgis
environment:
POSTGRES_USER: ${GEODB_USER}
POSTGRES_PASSWORD: ${GEODB_PW}
POSTGRES_DB: ${GEODB_NAME}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- backend
volumes:
pgdata:
driver: local
networks:
backend:
driver: bridge
external: true