> 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

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

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

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

```bash
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. شغّل الأمر التالي:

   ```bash
   docker-compose -f ngsurveyee.yml up
   ```

سيكون 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-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-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](/ar/installation-setup/installation/docker/tkhzyn-nzam-almlfat.md) واستخدام ngSurvey [ميزة تخزين نظام الملفات](/ar/installation-setup/system-settings/active-directory-settings-1.md) لتخزين ملفاتك.
{% endhint %}


---

# 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
