Skip to content

Fix DSpace Docker server URL configuration and add env template#1

Draft
Copilot wants to merge 2 commits intodockerfrom
copilot/fix-docker-image-build
Draft

Fix DSpace Docker server URL configuration and add env template#1
Copilot wants to merge 2 commits intodockerfrom
copilot/fix-docker-image-build

Conversation

Copy link

Copilot AI commented Jan 15, 2026

Docker compose was incorrectly handling DSPACE_SERVER_URL - the /server path was only present in the default value, so user-provided URLs would be missing it.

Changes

  • docker-compose.yml: Fixed dspace__P__server__P__url to always append /server path:

    # Before: /server only in default, lost if user provides value
    dspace__P__server__P__url: '${DSPACE_SERVER_URL:-http://localhost:8080/server}'
    
    # After: /server always appended
    dspace__P__server__P__url: '${DSPACE_SERVER_URL:-http://localhost:8080}/server'
  • Added .env.example: Template with placeholder values for Supabase database credentials and DSpace configuration. Users copy to .env and fill in their values.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 3.0.23.172.in-addr.arpa
    • Triggering command: /opt/java/openjdk/bin/java /opt/java/openjdk/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch -XX:+ExplicitGCInvokesConcurrent -Xlog:gc*:file=/var/solr/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes= -Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow (dns block)
  • api-inference.huggingface.co
    • Triggering command: /opt/java/openjdk/bin/java /opt/java/openjdk/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch -XX:+ExplicitGCInvokesConcurrent -Xlog:gc*:file=/var/solr/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes= -Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow (dns block)
  • api.mistral.ai
    • Triggering command: /opt/java/openjdk/bin/java /opt/java/openjdk/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch -XX:+ExplicitGCInvokesConcurrent -Xlog:gc*:file=/var/solr/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes= -Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow (dns block)
  • aws-1-ap-northeast-2.pooler.supabase.com
    • Triggering command: bash -c cat < /dev/null > /dev/tcp/aws-1-ap-northeast-2.pooler.supabase.com/5432 (dns block)
    • Triggering command: /opt/java/openjdk/bin/java java -Xmx2000m -Dlog4j2.configurationFile=/dspace/config/log4j2-cli.xml -classpath /dspace/lib/*:/dspace/config org.dspace.app.launcher.ScriptLauncher database migrate 06bc732994f8ca6d10e21b24efbaf954115/log.json (dns block)
    • Triggering command: /opt/java/openjdk/bin/java java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace (dns block)
  • langchain4j.dev
    • Triggering command: /opt/java/openjdk/bin/java /opt/java/openjdk/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch -XX:+ExplicitGCInvokesConcurrent -Xlog:gc*:file=/var/solr/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes= -Dsolr.log.dir=/var/solr/logs -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -XX:-OmitStackTraceInFastThrow (dns block)
  • www.hibernate.org
    • Triggering command: /opt/java/openjdk/bin/java java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

checkout to docker branch and do to dpsace folder and build the docker image and fix any issue.
here is correct .env

===========================================

DSpace Docker Environment Configuration

Copy this file to .env and fill in your values

===========================================

=========================================

SUPABASE POSTGRESQL DATABASE CONFIGURATION

=========================================

Find these values in your Supabase Dashboard:

Project Settings > Database > Connection string

Supabase database host (e.g., db.xxxxxxxxxxxx.supabase.co)

SUPABASE_HOST=aws-1-ap-northeast-2.pooler.supabase.com

Supabase database port (default: 5432, or 6543 for pooler)

SUPABASE_PORT=5432

Database name (default: postgres)

SUPABASE_DATABASE=postgres

Database user (default: postgres)

SUPABASE_USER=postgres.hepuifqeusqsfbcfjvgw

Database password (from Supabase dashboard)

SUPABASE_PASSWORD=neevarp4@1791

=========================================

DSPACE CONFIGURATION

=========================================

Public URL where DSpace backend API will be accessible

DSPACE_SERVER_URL=http://localhost:8080

Public URL where DSpace UI will be accessible

DSPACE_UI_URL=http://localhost:4000

Name of your digital library

DSPACE_NAME=Aria University Digital Library

=========================================

INITIAL ADMINISTRATOR ACCOUNT (Optional)

=========================================

Set these to auto-create an admin account on first startup

DSPACE_ADMIN_EMAIL=admin@aria.edu
DSPACE_ADMIN_PASSWORD=changeme123!
DSPACE_ADMIN_FIRSTNAME=Library
DSPACE_ADMIN_LASTNAME=Administrator

=========================================

AWS DEPLOYMENT (Optional)

=========================================

For S3 asset storage (uncomment to enable)

AWS_ACCESS_KEY_ID=your-access-key

AWS_SECRET_ACCESS_KEY=your-secret-key

AWS_REGION=us-east-1

S3_BUCKET_NAME=aria-dspace-assets

=========================================

PRODUCTION SETTINGS (Optional)

=========================================

Uncomment for production deployment

Use actual domain names

DSPACE_SERVER_URL=https://api.library.aria.edu

DSPACE_UI_URL=https://library.aria.edu

Java memory settings (adjust based on instance size)

JAVA_OPTS=-Xmx4g -Xms1g -XX:+UseG1GC

Solr memory settings

SOLR_HEAP=2g


first run the images with docker and find any log issue and at last raise the pull request once all work fine


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: amazonsingh <118895106+amazonsingh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues with Docker image build for DSpace Fix DSpace Docker server URL configuration and add env template Jan 15, 2026
Copilot AI requested a review from amazonsingh January 15, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants