Commit 17247423 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Recupera puerto y permite paso de variables

Prueba también con ruta de servicio Swarm para descubrimiento de nodos.
parent e8f03904
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
GEOSERVER_PORT=8080
CLUSTER_NAME="geoserver-cluster"
HAZELCAST_PORT=5701
CLUSTER_NAME=geoserver-cluster
CLUSTER_PASSWORD="changeme"
SYNC_MODE=event
SYNC_DELAY=0
SESSION_STICKY=true
CLUSTER_DISCOVERY_URL=tasks.geoserver
+4 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@ version: '3.5'

services:
  geoserver:
    ports:
      - target: ${GEOSERVER_PORT}
        published: 8095
        mode: host
    deploy:
      mode: replicated
      replicas: 1
+9 −1
Original line number Diff line number Diff line
@@ -4,7 +4,15 @@ services:
  geoserver:
    image: ${IMAGE_NAME}:${IMAGE_TAG:-latest}
    environment:
      - -DPROXY_BASE_URL=https://${GEOSERVER_SUBDOMAIN}.${PUBLIC_HOSTNAME}/geoserver
      - GEOSERVER_PORT
      - HAZELCAST_PORT
      - CLUSTER_NAME
      - CLUSTER_PASSWORD
      - SYNC_MODE
      - SYNC_DELAY
      - SESSION_STICKY
      - CLUSTER_DISCOVERY_URL
      - JAVA_OPTS=-DPROXY_BASE_URL=https://${GEOSERVER_SUBDOMAIN}.${PUBLIC_HOSTNAME}/geoserver
    networks:
      - gis-net
      - postgres-net
+2 −2
Original line number Diff line number Diff line
@@ -14,11 +14,11 @@
  </properties>

  <network>
    <port auto-increment="true">${HAZELCAST_PORT}</port>
    <port auto-increment="false">${HAZELCAST_PORT}</port>
    <join>
      <multicast enabled="false"></multicast>
      <tcp-ip enabled="true">
        <hostname>geoserver</hostname>
        <hostname>${CLUSTER_DISCOVERY_URL}</hostname>
      </tcp-ip>
    </join>
  </network>