37 lines
896 B
YAML
37 lines
896 B
YAML
services:
|
|
postgis:
|
|
image: postgis/postgis:14-3.5
|
|
container_name: postgis
|
|
environment:
|
|
POSTGRES_DB: TJWater
|
|
POSTGRES_USER: tjwater
|
|
POSTGRES_PASSWORD: Tjwater@123456
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- C:\Users\admin\Documents\docker\PostgreSQL\data:/var/lib/postgresql/data
|
|
networks:
|
|
- MapService
|
|
|
|
geoserver:
|
|
image: docker.osgeo.org/geoserver:2.27.1
|
|
container_name: geoserver
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- postgis
|
|
environment:
|
|
- GEOSERVER_ADMIN_USER=admin
|
|
- GEOSERVER_ADMIN_PASSWORD=geoserver
|
|
- INSTALL_EXTENSIONS=true
|
|
- STABLE_EXTENSIONS=css,vectortiles
|
|
- CORS_ENABLED=true
|
|
- CORS_ALLOWED_ORIGINS=*
|
|
volumes:
|
|
- C:\Users\admin\Documents\docker\GeoServer\data:/opt/geoserver_data
|
|
networks:
|
|
- MapService
|
|
|
|
networks:
|
|
MapService:
|
|
driver: bridge |