更新docker文件

This commit is contained in:
JIANG
2025-11-10 14:29:18 +08:00
parent 34668379f1
commit 82e6706019
3 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
version: '1.0'
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