From d7b4d41143168a2b9e941504c0c3078ef77b9688 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Sun, 20 Jul 2025 13:59:03 -0500 Subject: [PATCH] Now with working compose file. --- GEOCoder/GISGraphy/docker-compose.yml | 36 ++++++--------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/GEOCoder/GISGraphy/docker-compose.yml b/GEOCoder/GISGraphy/docker-compose.yml index 51d8686..60e2dc9 100644 --- a/GEOCoder/GISGraphy/docker-compose.yml +++ b/GEOCoder/GISGraphy/docker-compose.yml @@ -10,16 +10,14 @@ services: - PGPASSWORD=${POSTGRES_PASSWORD:-gisgraphy123} - JAVA_OPTS=-Xmx2g -Xms1g volumes: - # Persist PostgreSQL data - - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/data:/var/lib/postgresql/data - # Persist Gisgraphy application data - - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/app:/usr/local/gisgraphy - # Persist logs - - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/logs:/var/log/gisgraphy - # Optional: Mount custom configuration - - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/config:/usr/local/gisgraphy/config:ro - # Optional: Mount data dumps for import - - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/dumps:/opt/dumps:ro + # Persist PostgreSQL database data + - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/postgres-data:/var/lib/postgresql/data + # Persist only the data subdirectory (not the entire app directory) + - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/gis-data:/usr/local/gisgraphy/data + # Persist logs for debugging/monitoring + - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/logs:/usr/local/gisgraphy/logs + # Persist any downloaded/imported geographical data + - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/import-data:/usr/local/gisgraphy/import restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/"] @@ -28,24 +26,6 @@ services: retries: 3 start_period: 60s - # Optional: Separate PostgreSQL service if you want to manage DB separately - # Uncomment the section below if you prefer a separate database container - # - # postgres: - # image: postgis/postgis:13-3.1 - # container_name: gisgraphy-postgres - # environment: - # - POSTGRES_DB=gisgraphy - # - POSTGRES_USER=gisgraphy - # - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-gisgraphy123} - # - POSTGRES_INITDB_ARGS="--encoding=UTF-8 --locale=en_US.UTF-8" - # volumes: - # - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/postgres:/var/lib/postgresql/data - # - /home/localuser/KNELDevStack-CDS/docker-data/GIS/gisgraphy/init-scripts:/docker-entrypoint-initdb.d:ro - # ports: - # - "5432:5432" - # restart: unless-stopped - networks: default: name: gisgraphy-network \ No newline at end of file