重命名 docker compose 文件

This commit is contained in:
JIANG
2026-01-07 10:16:49 +08:00
parent 1e8ea08e9f
commit f43abfc6c4
5 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
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