This is working for me
geoserver:
image: kartoza/geoserver:2.26.1
container_name: geoserver
environment:
DB_BACKEND: POSTGRES
HOST: postgis
POSTGRES_PORT: 5432
POSTGRES_DB: geoserver_backend
POSTGRES_USER: postgres
POSTGRES_PASS: root
SSL_MODE: allow
POSTGRES_SCHEMA: public
DISK_QUOTA_SIZE: 5
COMMUNITY_EXTENSIONS: jdbcconfig-plugin,jdbcstore-plugin
GEOSERVER_ADMIN_PASSWORD: geoserver
GEOSERVER_ADMIN_USER: admin
SAMPLE_DATA: TRUE
USE_DEFAULT_CREDENTIALS: TRUE
volumes:
- geoserver_data:/opt/geoserver/data_dir
- ./web-conf.xml:/usr/local/tomcat/conf/web.xml
- ./web-inner.xml:/usr/local/tomcat/webapps/geoserver/WEB-INF/web.xml
ports:
- "8080:8080"