> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/installation-setup/installation/docker.md).

# Docker

التشغيل على أي منصة تدعم صور docker

{% hint style="danger" %} <mark style="color:أحمر;">**للوصول إلى صورة Docker، ستحتاج إلى الحصول على بيانات تسجيل الدخول ورمز الوصول. للحصول على رمز الوصول الشخصي الخاص بك**</mark> [<mark style="color:أحمر;">**اتصل بـ**</mark> ](#user-content-fn-1)[^1][<mark style="color:أحمر;">**فريق مبيعات ngSurvey**</mark>](https://www.ngsurvey.com/contact)<mark style="color:أحمر;">**.**</mark>
{% endhint %}

### الاستخدام

لتشغيل **ngSurvey** على جهازك المحلي باستخدام المنفذ `8080`:

1. اسحب صورة Docker من Docker Hub.
2. عيّن `ConnectionStrings:NgSurveyDB` متغير البيئة إلى مضيف قاعدة البيانات وتفاصيلها.

```bash
docker login -u ngsurvey -p YOUR_ACCESSTOKEN
docker pull ngsurvey/ngsurveyee:latest
docker run -d --name ngsurvey -p 8080:80 -e "ConnectionStrings:NGSurveyDB=Server=YourSQLServerHost;Initial Catalog=NGSurvey;User ID=youruserid;Password=yourpassword" ngsurvey/ngsurveyee:latest
```

بعد التشغيل، يمكنك الوصول إلى ngSurvey على `http://localhost:8080` باستخدام الحساب الافتراضي:

* **المستخدم**: ngsadmin
* **كلمة المرور**: admin

للنشر على منصات مثل Azure أو AWS أو Google Cloud أو Windows Server، راجع وثائق Docker الخاصة بالمورد المعني.

***

### استخدام Docker Compose - SQL Express

لإعداد سريع خلال 5 دقائق باستخدام **ngSurvey** ومع تكوين كامل لـ **SQL Express** مثيل مع تخزين بيانات دائم:

1. نزّل ملف YAML المُعد مسبقًا: [ngsurveyee.yml](https://ngsurvey.s3.eu-central-1.amazonaws.com/ngsurveyee.yml).
2. نفّذ الأمر التالي:

   <pre class="language-bash"><code class="lang-bash"><strong>docker login -u ngsurvey -p YOUR_ACCESSTOKEN
   </strong><strong>docker-compose -f ngsurveyee.yml up
   </strong></code></pre>

سيكون ngSurvey متاحًا على `http://localhost:8080`.

* ينشئ الإعداد حاويتين: واحدة لـ **ngSurvey** وأخرى لـ **SQL Express**.
* ستظل البيانات محفوظة حتى إذا تم تحديث الحاويات أو إيقافها.
* **مهم**: حدّث كلمة المرور الافتراضية في `ngsurveyee.yml` باستخدام محرر نصوص قبل النشر.

***

### استخدام Docker Compose - MySQL

لإعداد سريع خلال 5 دقائق باستخدام **ngSurvey** ومع تكوين كامل لـ **MySQL** مثيل مع تخزين بيانات دائم:

1. نزّل ملف YAML المُعد مسبقًا: [ngsurveyee.mysql.yml](https://ngsurvey.s3.eu-central-1.amazonaws.com/ngsurveyee.mysql.yml).
2. نفّذ الأمر التالي:

   ```bash
   docker login -u ngsurvey -p YOUR_ACCESSTOKEN
   docker-compose -f ngsurveyee.mysql.yml up
   ```

سيكون ngSurvey متاحًا على `http://localhost:8080`.

* ينشئ الإعداد حاويتين: واحدة لـ **ngSurvey** وأخرى لـ **MySQL**.
* ستظل البيانات محفوظة حتى إذا تم تحديث الحاويات أو إيقافها.
* **مهم**: حدّث كلمة المرور الافتراضية في `ngsurveyee.mysql.yml` باستخدام محرر نصوص قبل النشر.

***

### استخدام Docker Compose - PostgreSQL

لإعداد سريع خلال 5 دقائق باستخدام **ngSurvey** ومع تكوين كامل لـ **PostgreSQL** مثيل مع تخزين بيانات دائم:

1. نزّل ملف YAML المُعد مسبقًا: [ngsurveyee.postgres.yml](https://ngsurvey.s3.eu-central-1.amazonaws.com/ngsurveyee.postgres.yml).
2. نفّذ الأمر التالي:

   ```bash
   docker login -u ngsurvey -p YOUR_ACCESSTOKEN
   docker-compose -f ngsurveyee.postgres.yml up
   ```

سيكون ngSurvey متاحًا على `http://localhost:8080`.

* ينشئ الإعداد حاويتين: واحدة لـ **ngSurvey** وأخرى لـ **PostgreSQL**.
* ستظل البيانات محفوظة حتى إذا تم تحديث الحاويات أو إيقافها.
* **مهم**: حدّث كلمة المرور الافتراضية في `ngsurveyee.postgres.yml` باستخدام محرر نصوص قبل النشر.

***

### إعداد قاعدة بيانات

افتراضيًا، سيقوم ngSurvey تلقائيًا بتكوين أو إنشاء أو تحديث قاعدة البيانات المحددة في سلسلة الاتصال الخاصة بك. عند التشغيل على **AWS**, سيقوم ngSurvey تلقائيًا بالتقاط جميع خصائص اتصال RDS.

***

### إعداد خادم البريد / واجهات API الخارجية

بعد التثبيت، يمكنك تكوين خادم البريد الخاص بك عبر **Administration > System > Settings** الصفحة. يمكنك أيضًا إعداد تكاملات API لطرف ثالث مثل Google reCAPTCHA.

***

{% hint style="info" %}
إذا كنت تخطط لجمع كمية كبيرة من الملفات أو استخدام كمية كبيرة من الملفات كوسائط، فنوصي بإعداد [Docker volume](/ar/installation-setup/installation/docker/tkhzyn-nzam-almlfat.md) واستخدم ngSurvey [تخزين نظام الملفات](/ar/installation-setup/system-settings/active-directory-settings-1.md) ميزة لتخزين ملفاتك.
{% endhint %}

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/ar/installation-setup/installation/docker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
