initial postgis db
This commit is contained in:
3
.env.example
Normal file
3
.env.example
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
GEODB_USER=xxx
|
||||||
|
GEODB_PW=xxx
|
||||||
|
GEODB_NAME=xxx
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user