Now with working compose file.

This commit is contained in:
2025-07-20 13:59:03 -05:00
parent e15007f1b1
commit d7b4d41143

View File

@@ -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