Dokumentation: Flowy & Docker


Please support us to improve our service. We would like to use statistics anonymously.

We do not pass on your data! You can find more information in our privacy policy.

Decline

< Zurück zur Dokumentation

Flowy als Docker-Images erstellen

Bereiten Sie zunächst die Artefakte vor:

mvnw clean package -Dmaven.test.skip=true

Erstellen Sie die Docker-Images:

docker-compose build flowy-admin
docker-compose build flowy-processing

Starten Sie die Images:

docker-compose up -d flowy-admin
docker-compose up -d flowy-processing

Beispiel für eine docker-compose-Konfiguration:

  flowy-admin:
    build:
      context: ./flowy-admin
      dockerfile: Dockerfile
      args:
        CONFIG_FILE: /etc/flowy/admin.yml
    container_name: flowy-admin
    ports:
      - "8080:8080"
    volumes:
      - ./application.yml:/etc/flowy/admin.yml

  flowy-processing:
    build:
      context: ./flowy-processing
      dockerfile: Dockerfile
      args:
        CONFIG_FILE: /etc/flowy/processing.yml
    container_name: flowy-processing
    ports:
      - "8081:8081"
    volumes:
      - ./application.yml:/etc/flowy/processing.yml

Sie können eine eigene Konfigurationsdatei application.yml bereitstellen und den Port ändern.

Flowy-Docker-Images ausführen

Passen Sie zunächst die Konfigurationsdateien an und führen Sie anschließend Folgendes aus:

Unter Windows

docker load --input .\flowy-admin.docker
docker load --input .\flowy-processing.docker
docker run -it -p 8080:80 -v "D:\flowy\flowy-admin\test\flowy-admin.yml:/etc/flowy/admin.yml" --rm --name flowy-admin flowy/flowy-admin
docker run -it -p 8081:80 -v "D:\flowy\flowy-admin\test\flowy-processing.yml:/etc/flowy/processing.yml" --rm --name flowy-processing flowy/flowy-processing

Unter *nix

docker load --input flowy-admin.docker
docker load --input flowy-processing.docker
docker run -it -p 8080:80 -v "* /home/user/projects/flowy/flowy-main/flowy-admin.yml:/etc/flowy/admin.yml" --rm --name flowy-admin flowy/flowy-admin
docker run -it -p 8081:80 -v "* /home/user/projects/flowy/flowy-main/flowy-processing.yml:/etc/flowy/processing.yml" --rm --name flowy-processing flowy/flowy-processing

Sobald der Admin-Container vollständig gestartet ist, sollte die Oberfläche unter folgender Adresse erreichbar sein: http://localhost:8080open in new window