# ขั้นตอนการติดตั้งซอฟแวร์

### สิ่งที่จำเป็นต้องมีก่อนเริ่มติดตั้ง

1. Linux OS (Ubuntu 20.04)
2. Docker Engine <https://docs.docker.com/engine/install/ubuntu/>
3. Docker Compose <https://docs.docker.com/compose/install/>

### ขั้นตอนการติดตั้ง

1. Login to gitlab registry

   ```bash
   docker login registry.gitlab.com/idio-tech -u <PLEASE SEE IN EMAIL> -p <PLEASE SEE IN EMAIL>
   ```
2. Download config file (copy all)

   ```bash
   curl -H "PRIVATE-TOKEN: <PLEASE SEE IN EMAIL>" https://gitlab.com/api/v4/projects/20393122/repository/archive?sha=master > pls-demo.tar.gz &&\
   mkdir -p pls-demo/data pls-demo/storage/images/prisoner &&\
   tar -zxvf pls-demo.tar.gz --strip-components=1 -C pls-demo &&\
   cd pls-demo
   ```
3. Edit Server IP

   ```
   sed -i 's/ServerIP/123.123.123.123/g' docker-compose.yml
   ```
4. Start services

   ```
   docker-compose up -d
   ```
5. Check appclication in your browser

   ```
   http://<server-ip>:8088/
   ```

{% hint style="info" %}
Username: admin\
Password: adminadmin
{% endhint %}


---

# 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://pls-docs.idio-tech.net/master.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.
