Commit 55a9bd9d authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Unifica valores de variables

parent 47814593
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ PGDATA=/var/lib/postgresql/data/db-files
POSTGRES_INITDB_WALDIR=/postgresql/wal/wal-files
DESIRED_WORKER_ID=a
PORT=5432

POSTGRES_NET_NAME=postgres-net
DATA_VOLUME_NAME=postgres-data-vol
WAL_VOLUME_NAME=postgres-wal-vol
POSTGRES_NET_NAME=postgres-net
VOL_TYPE=nfs4
VOL_ADDR=127.0.0.1
VOL_OPTIONS=rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14
+4 −4
Original line number Diff line number Diff line
@@ -16,14 +16,14 @@ volumes:
    name: ${DATA_VOLUME_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE:-nfs4}
      o: addr=${VOL_ADDR:-127.0.0.1},${VOL_OPTIONS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTIONS}
      device: ${DATA_VOL_DEVICE:-:/postgres-data-vol/}

  wal-vol:
    name: ${WAL_VOLUME_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE:-nfs4}
      o: addr=${VOL_ADDR:-127.0.0.1},${VOL_OPTIONS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTIONS}
      device: ${WAL_VOL_DEVICE:-:/postgres-wal-vol/}