Commit 7131a011 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Reemplaza variables en comandos

parent 5e920a23
Loading
Loading
Loading
Loading
+33 −27
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ x-swfs-master:
  command:
    - -c
    - |
      $$(echo "
        weed -logtostderr=true master
          -mdir=${DATA_PATH}
          -volumePreallocate
@@ -16,6 +17,7 @@ x-swfs-master:
          -ip.bind=0.0.0.0
          -port=${MASTER_PORT}
          -peers=${MASTER_HOST}-1:${MASTER_PORT},${MASTER_HOST}-2:${MASTER_PORT},${MASTER_HOST}-3:${MASTER_PORT}
      ")
  networks:
    seaweedfs-net:
    traefik-net:
@@ -73,6 +75,7 @@ services:
    command:
      - -c
      - |
        $$(echo "
          weed -logtostderr=true volume
            -dir=${DATA_PATH}
            -max=0
@@ -83,6 +86,7 @@ services:
            -port=${VOLUME_PORT}
            -publicUrl=${VOLUME_TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}
            -mserver=${MASTER_HOST}-1:${MASTER_PORT},${MASTER_HOST}-2:${MASTER_PORT},${MASTER_HOST}-3:${MASTER_PORT}
        ")
    hostname: ${VOLUME_IP}
    environment:
      VOLUME_IP:
@@ -125,6 +129,7 @@ services:
    command:
      - -c
      - |
        $$(echo "
          weed -logtostderr=true filer
            -dataCenter=$${FILER_PREFERED_DATACENTER}
            -rack=$${FILER_PREFERED_RACK}
@@ -133,6 +138,7 @@ services:
            -ip.bind=0.0.0.0
            -port=${FILER_PORT}
            -master=${MASTER_HOST}-1:${MASTER_PORT},${MASTER_HOST}-2:${MASTER_PORT},${MASTER_HOST}-3:${MASTER_PORT}
        ")
    hostname: ${FILER_IP}
    environment:
      FILER_IP: