# Dockerserver

Docker Compose configuration of application's service dependencies for development.

## Installation steps

- **English:** [docs/README.md](https://sportisimo.visualstudio.com/Softwarov%C3%A9%20odd%C4%9Blen%C3%AD/_git/dockerserver?path=/docs/README.md&_a=preview)
- **Česky:** [docs/README.cs.md](https://sportisimo.visualstudio.com/Softwarov%C3%A9%20odd%C4%9Blen%C3%AD/_git/dockerserver?path=/docs/README.cs.md&_a=preview)

## Setting up Elasticsearch

- **English:** [docs/ELASTIC.md](https://sportisimo.visualstudio.com/Softwarov%C3%A9%20odd%C4%9Blen%C3%AD/_git/dockerserver?path=/docs/ELASTIC.md&_a=preview)
- **Česky:** [docs/ELASTIC.cs.md](https://sportisimo.visualstudio.com/Softwarov%C3%A9%20odd%C4%9Blen%C3%AD/_git/dockerserver?path=/docs/ELASTIC.cs.md&_a=preview)

---

#### Containers

| Container Name | Image                                                                 | --profile     | Description                              |
|:--------------:|-----------------------------------------------------------------------|---------------|------------------------------------------|
|     nginx      | `nginx:latest`                                                        |               | Web server                               |
|   php80-fpm    | based on `harbor.geetoo.com/sportisimo/php:8.0.18-fpm-bullseye-devel` |               | PHP 8.0 - FPM                            |
|   php80-cli    | based on `harbor.geetoo.com/sportisimo/php:8.0.18-cli-bullseye-devel` |               | PHP 8.0 - CLI                            |
| redis-sentinel | `bitnami/redis-sentinel:6.2.7`                                        |               | Redis Sentinel                           |
|     redis      | `bitnami/redis:latest`                                                |               | Redis Master                             |
|  redis-slave   | `bitnami/redis:latest`                                                |               | Redis Slave (--scale 3)                  |
|   redis-trs    | `redis:6`                                                             |               | Redis TRS                                |
| elasticsearch  | based on `elasticsearch:7.9.3`                                        | elasticsearch | Search engine                            |
|  elasticdump   | `elasticdump/elasticsearch-dump:v6.90.0`                              | elasticsearch | Tool for manipulating Elasticsearch data |
|    cerebro     | `lmenezes/cerebro:0.9.4`                                              | elasticsearch | Web GUI for Elasticsearch                |
|   ruby-sass    | based on `ruby:alpine`                                                | sass          | SASS compiler                            |
|    node-js     | based on `node:16.18.0`                                               | node-js       | NodeJS                                   |

#### Nginx server blocks

| Repository                  | URL                                        | Local path                                                            | Container path                      |
|:----------------------------|--------------------------------------------|-----------------------------------------------------------------------|-------------------------------------|
| api                         | https://devel-api.sportisimo.com           | `\\wsl$\Ubuntu\home\<username>\work\apps\api`                         | `/apps/api`                         |
| astro_trs_rest_app          | https://devel-astro-trs.rest.sportisimo.io | `\\wsl$\Ubuntu\home\<username>\work\apps\astro_trs_rest_app`          | `/apps/astro_trs_rest_app`          |
| ecommerce_admin             | https://devel-admin.sportisimo.com         | `\\wsl$\Ubuntu\home\<username>\work\apps\ecommerce_admin`             | `/apps/ecommerce_admin`             |
| ecommerce_web               | https://devel-www.sportisimo.com           | `\\wsl$\Ubuntu\home\<username>\work\apps\ecommerce_web`               | `/apps/ecommerce_web`               |
| process-doc                 | https://devel-process-doc.sportisimo.com   | `\\wsl$\Ubuntu\home\<username>\work\apps\process-doc`                 | `/apps/process-doc`                 |
| sportisimo-api_erp_rest_app | https://devel-erp.rest.sportisimo.io       | `\\wsl$\Ubuntu\home\<username>\work\apps\sportisimo-api_erp_rest_app` | `/apps/sportisimo-api_erp_rest_app` |
| srp                         | https://devel-srp.sportisimo.com           | `\\wsl$\Ubuntu\home\<username>\work\apps\srp`                         | `/apps/srp`                         |
| stockadmin                  | https://devel-stockadmin.sportisimo.com    | `\\wsl$\Ubuntu\home\<username>\work\apps\stockadmin`                  | `/apps/stockadmin`                  |
| -                           | https://js.sportisimo.com                  | `\\wsl$\Ubuntu\home\<username>\work\js`                               | `/js`                               |
