Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
English
Docker (www.docker.com) is an open platform making it easier to create, deploy, and run applications by using containers.
Thai

Docker (www.docker.com) เป็นแพลตฟอร์มเปิดที่ทำให้การสร้างปรับใช้และเรียกใช้แอปพลิเคชันง่ายขึ้นโดยใช้คอนเทนเนอร์


Image Modified

This article describes the steps required to run Joget Workflow on Docker. With Docker, you can easily deploy Joget Workflow with just a single command. Public Joget Workflow Docker images are hosted in the Docker Hub repository ( https://hub.docker.com/u/jogetworkflow/ )

Thai

บทความนี้อธิบายขั้นตอนที่จำเป็นในการเรียกใช้ Joget บน Docker ด้วย Docker คุณสามารถปรับใช้ Joget ได้อย่างง่ายดายด้วยคำสั่งเดียว รูปภาพ Joget Docker สาธารณะเป็นโฮสต์ในที่เก็บ Docker Hub (https://hub.docker.com/u/jogetworkflow/)

Prerequisite: Install Docker

Install Docker following the docs at https://docs.docker.com/engine/installation/  There are instructions for Linux, Windows or Mac.

Thai

วิชาบังคับก่อน: ติดตั้ง Docker


ติดตั้ง Docker ตามเอกสารที่ https://docs.docker.com/engine/installation/ มีคำแนะนำสำหรับ Linux, Windows หรือ Mac

Option 1: Run Joget

...

with Embedded MySQL

The easiest way is to run a Joget Workflow container which also contains a MySQL database:

Thai

ตัวเลือกที่ 1: เรียกใช้ Joget ด้วย MySQL แบบฝัง


วิธีที่ง่ายที่สุดคือเรียกใช้ Joget container ซึ่งมีฐานข้อมูล MySQL อยู่ด้วย:

Code Block
languagebash
docker run -d -p 8080:8080 -v /var/lib/mysql --name joget jogetworkflow/joget-enterprise

With just a single command, you will have an entire running installation of Joget Workflow. Browse to the installation at http://your_docker_host:8080/jw

Thai

เพียงแค่คำสั่งเดียวคุณจะได้ติดตั้ง Joget ทั้งหมด เรียกดูการติดตั้งที่  http://your_docker_host:8080/jw

Option 2: Run Joget

...

with Separate MySQL and Data Volume

For better flexibility and manageability, you can run a Joget Workflow container separately from the database and shared data volume:

Thai

ตัวเลือกที่ 2: เรียกใช้ Joget ด้วยการแยก MySQL และปริมาณข้อมูล


เพื่อความยืดหยุ่นและการจัดการที่ดีขึ้นคุณสามารถเรียกใช้คอนเทนเนอร์ Joget แยกจากฐานข้อมูลและปริมาณข้อมูลที่แชร์:

 

Code Block
languagebash
# create a volume container for shared data
docker volume create jogetdata

# run a MySQL database container
docker run -d --name jogetdb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=jwdb -e MYSQL_USER=joget -e MYSQL_PASSWORD=joget -e MYSQL_DATABASE=jwdb mysql:5.7

# run a Joget Workflow container
docker run -d --link jogetdb:jwdb --name joget -p 8080:8080 -e MYSQL_HOST=jwdb -e MYSQL_DATABASE=jwdb -e MYSQL_PORT=3306 -e MYSQL_USER=joget -e MYSQL_PASSWORD=joget --mount source=jogetdata,target=/opt/joget/wflow jogetworkflow/joget-enterprise

Browse to the installation at http://your_docker_host:8080/jw

Thai

เรียกดูการติดตั้งที่  http://your_docker_host:8080/jw

Preserve MAC Address for Joget License

Once the docker instance is up, you may want to obtain the MAC address of the docker instance by using the following command.

Code Block
languagebash
sudo docker inspect --format='{{range .NetworkSettings.Networks}}{{.MacAddress}}{{end}}' joget


After you obtain the MAC address, you may preserve the MAC address the next time you create the same Joget instance again to ensure that Joget license tied to it continue to be valid.

Code Block
languagebash
docker run -ti --mac-address 00:00:00:00:00:11 -d -p 8080:8080 -v /var/lib/mysql --name joget3 jogetworkflow/joget-enterprise