diff --git a/additional_libs/.gitignore b/additional_libs/.gitignore old mode 100644 new mode 100755 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..9a35e3d0 --- /dev/null +++ b/docker-compose.yaml @@ -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 diff --git a/geoserver_data/.gitignore b/geoserver_data/.gitignore old mode 100644 new mode 100755