# Docker Compose

## 1. Docker Compose Yükleme

Docker Compose kurulumu için aşağıdaki betikleri çalıştırabiliriz.

```sh
sudo curl -L -k "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
```

## 2. Docker Compose Up

Ayağa kaldırmak için son docker-compose.yml dosaysını aşağıdaki komutlarla indirelim ve çalıştıralım.

```sh
wget https://raw.githubusercontent.com/limanmys/core/master/docker-compose.yml
DB_PASS="Parola" docker-compose up -d
```

```
İşlem Sonucu aşağıdaki gibi dönmelidir
[+] Running 5/5
 ✔ Network liman-net       Created                                                      0.1s 
 ✔ Container liman-webssh  Started                                                      0.4s 
 ✔ Container liman-redis   Started                                                      0.6s 
 ✔ Container liman-db      Healthy                                                      6.1s 
 ✔ Container liman-core    Started 
```

## 3. Kontrol Arayüzüne Erişim

İşlemler başarılı gerçekleşti ise **Docker Compose** kurduğumuz makinenin ip adresine gittiğimizde aşağıdaki gibi bir arayüz bizi karşılayacaktır.

<figure><img src="/files/QTvPy9jW91G26ruVY5B6" alt=""><figcaption></figcaption></figure>

## 4. Yönetici parolası oluşturma

Kurulum sonrasında ilk yapılması gereken Yönetici parolası oluşturmak. Bunun için aşağıdaki komutlar ile sudo yetkili kullanıcı ile yönetici hesabı oluşturulur:

```sh
sudo docker exec -it liman-core limanctl administrator
```

Bu adım sonunda karşınıza liman web arayüzünden giriş yapacağınız kullanıcı adı ve parolanız çıkacaktır. Liman'ı kurduğunuz sunucunun ip adresini web tarayıcınız üzerine yazıp bu bilgiler ile giriş yaparsanız Liman'ın Web arayüzüne giriş yapmış olacaksınız.

![](/files/3PkQdXeYIIdEw9tbb0Mf)

Liman yönetici parolasını unutmanız durumunda aşağıdaki komutu kullanarak parolasını sıfırlayabilirsiniz.

```sh
sudo docker exec -it liman-core limanctl reset administrator@liman.dev
```


---

# 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://docs.liman.dev/baslangic/kurulum/docker-compose.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.
