Добавил инфу по docker в readme
All checks were successful
Lint / Run linters (push) Successful in 37s
Create and publish a Docker image / Publish image (push) Successful in 30s
Create and publish a Docker image / Deploy image (push) Successful in 10s

This commit is contained in:
Sergey Karmanov 2024-06-21 11:39:47 +03:00
parent 4ea6543545
commit 39b8526c35

View File

@ -1,8 +1,43 @@
# Backend # Backend
Технологии:
* ASP.NET
* Aspire
* PostgreSQL
* Docker + Compose
* Nginx
* Github CI/CD
# ApiService # ApiService
## Docker
```bash
docker run -d -p 8080:8080 \
--name Backend \
--restart=always \
-e DATABASE='Host=192.168.111.0;Port=5432;Database=prod;Username=prod;Password=' \
-e TZ=Europe/Moscow \
git.zetcraft.ru/hackathonpreparing/backend:main
```
## Docker compose
```yaml
version: '3.3'
services:
backend:
ports:
- 8080:8080
container_name: Backend
restart: always
environment:
- DATABASE=Host=192.168.111.0;Port=5432;Database=prod;Username=prod;Password=
- TZ=Europe/Moscow
image: git.zetcraft.ru/hackathonpreparing/backend:main
```
Строка подключения в appsettings.json: Строка подключения в appsettings.json:
username:postgres username:postgres
password:postgres password:postgres