38 lines
899 B
YAML
38 lines
899 B
YAML
version: '1.0'
|
|
services:
|
|
postgis:
|
|
image: postgis/postgis:14-3.5
|
|
container_name: postgis
|
|
environment:
|
|
POSTGRES_DB: TJWater
|
|
POSTGRES_USER: zhifu
|
|
POSTGRES_PASSWORD: qwer
|
|
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 |