Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified additional_libs/.gitignore
100644 → 100755
Empty file.
58 changes: 58 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: '3'
services:
geoserver:
build:
context: .
args:
- GS_VERSION=2.28.2
ports:
- "8084:8080"
environment:
- INSTALL_EXTENSIONS=true
- STABLE_EXTENSIONS=wps,csw,gwc-s3
- COMMUNITY_EXTENSIONS=cog-s3
- EXTRA_JAVA_OPTS=-Xms1G -Xmx2G
- CORS_ENABLED=true
- CORS_ALLOWED_METHODS=GET,POST,PUT,HEAD,OPTIONS
- POSTGRES_JNDI_ENABLED=true
- POSTGRES_HOST=postgis
- POSTGRES_PORT=5432
- POSTGRES_DB=geoserver
- POSTGRES_USERNAME=geoserver
- POSTGRES_PASSWORD=geoserver
- POSTGRES_JNDI_RESOURCE_NAME=jdbc/postgres
- RUN_UNPRIVILEGED=true
- RUN_WITH_USER_UID=1000 # you may change this to match your host user id
- RUN_WITH_USER_GID=1000 # you may change this to match your host group id

# - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
# - AWS_REGION=${AWS_REGION:-us-east-1}
- S3_ALIAS=minio
- S3_ENDPOINT=${MINIO_ENDPOINT}
- S3_USER=${AWS_ACCESS_KEY_ID}
- S3_PASS=${AWS_SECRET_ACCESS_KEY}

volumes:
- ./geoserver_data:/opt/geoserver_data/:Z
- ./additional_libs:/opt/additional_libs:Z # by mounting this we can install libs from host on startup
- ./additional_fonts:/opt/additional_fonts:Z
healthcheck:
test: curl --fail "http://localhost:8080/geoserver/web/wicket/resource/org.geoserver.web.GeoServerBasePage/img/logo.png" || exit 1
interval: 1m
retries: 3
timeout: 20s
postgis:
image: postgis/postgis:18-3.6-alpine
ports:
- "5555:5432"
environment:
POSTGRES_USER: geoserver
POSTGRES_PASSWORD: geoserver
volumes:
- ./postgis/postgresql_data:/var/lib/postgresql:Z
healthcheck:
test: pg_isready -U geoserver -h localhost -t 5 || exit 1
interval: 10s
retries: 5
timeout: 10s
Empty file modified geoserver_data/.gitignore
100644 → 100755
Empty file.