# Bắt đầu riêng container Docker giao diện người dùng

Khi phát triển backend riêng biệt, bạn có thể chỉ cần khởi động dịch vụ backend từ mã nguồn mà không cần xây dựng và khởi chạy giao diện người dùng cục bộ. Trong trường hợp này, bạn có thể trực tiếp khởi động dịch vụ giao diện người dùng bằng cách kéo hình ảnh Docker và chạy vùng chứa. Dưới đây là các bước cụ thể:

#### Kéo hình ảnh Docker cho dịch vụ giao diện người dùng từ DockerHub:

```
docker run -it -p 3000:3000 -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 langgenius/dify-web:latest
```

#### Xây dựng hình ảnh Docker từ mã nguồn

1. Xây dựng hình ảnh giao diện người dùng:

   ```
   cd web && docker build . -t chatx-web
   ```
2. Bắt đầu hình ảnh giao diện người dùng

   ```
   docker run -it -p 3000:3000 -e CONSOLE_URL=http://127.0.0.1:5001 -e APP_URL=http://127.0.0.1:5001 dify-web
   ```
3. Khi miền bảng điều khiển và miền ứng dụng web khác nhau, bạn có thể đặt riêng CONSOLE\_URL và APP\_URL.
4. Để truy cập cục bộ, bạn có thể truy cập [http://127.0.0.1:3000](http://127.0.0.1:3000/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.chatx.vn/document-chatx/bat-dau/cai-dat-tu-luu-tru/bat-dau-rieng-container-docker-giao-dien-nguoi-dung.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
