[Fun open source project] Docker deploys the cook recipe tool

1. Introduction to cook recipe tool

The open source Cook recipe project is a community project based on the open source model. Its core goal is to provide users with a place where they can freely communicate, contribute and obtain recipes. The platform allows users to freely select ingredients and kitchen utensils, and automatically generates recipes, with detailed video tutorials for each recipe. This project encourages the sharing, innovation and exploration of recipes so that more people can benefit from the process of cooking and sharing delicious food.

2. Introduction to local environment

2.1 Local environment planning

This practice is a personal test environment, and the operating system version is centos7.6.

hostname IP address Operating system version Docker version
jeven 192.168.3.166 centos 7.6 20.10.17

2.2 Introduction to this practice

1. The deployment environment for this practice is a personal test environment;
2. Deploy the cook recipe tool in the Docker environment.

3. Local environment inspection

3.1 Check Docker service status

Check whether the Docker service is running normally and ensure that Docker is running normally.

[[root@jeven ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2023-10-01 20:22:09 CST; 1 day 18h ago
     Docs: https://docs.docker.com
 Main PID: 12430 (dockerd)
    Tasks: 39
   Memory: 1.6G
   CGroup: /system.slice/docker.service

3.2 Check Docker version

Check the Docker version, the current Docker version is 20.10.17.

[root@jeven ~]# docker -v
Docker version 20.10.17, build 100c701

4. Download the cook image

Pull the image yunyoujun/cook:latest from docker hub.

docker pull yunyoujun/cook:latest

Insert image description here

5. Deploy the cook recipe tool

5.1 Create cook container

Use the following command to quickly create a cook container.

docker run  -d --name cook --restart always -p 8085:80 yunyoujun/cook:latest

Insert image description here

5.2 View container status

Check cook container status

[root@jeven ~]# docker ps
CONTAINER ID   IMAGE                   COMMAND                  CREATED          STATUS          PORTS                                                  NAMES
4755cfe4611d   yunyoujun/cook:latest   "/docker-entrypoint.…"   38 seconds ago   Up 37 seconds   0.0.0.0:8085->80/tcp, :::8085->80/tcp                  cook

5.3 Check container logs

Use the following command to view the container running log.

Insert image description here

6. Access the cook recipe service

6.1 Visit cook home page

Access address: http://192.168.3.166:8085/, replace the IP address with your own server IP address.

Insert image description here

6.2 View recipes

Select ingredients and kitchen utensils, view the generated recipe, click on the recipe, and it will jump to the video.

Insert image description here

6.3 Generate random recipes

In the "What to Eat" module, you can click to randomly generate recipes.

Insert image description here

7. Summary

The Cook Recipe Project is an excellent open source recipe project that aims to provide users with a simple, fast and elegant way to find, create and share recipes. If you love food and are interested in this project, you can go to the official GitHub repository for more details. This open source recipe project is a very practical recipe resource library, which is very suitable for the majority of food lovers.

Guess you like

Origin blog.csdn.net/jks212454/article/details/133519690