Папка docker, где находится compose.yaml - файл для docker
Some checks failed
Unit tests / tests-and-publication (push) Failing after 1m5s
Some checks failed
Unit tests / tests-and-publication (push) Failing after 1m5s
This commit is contained in:
parent
43289d939b
commit
11eea8db67
25
.docker/appsettings.json
Normal file
25
.docker/appsettings.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"DefaultConnection": "Host=db:5432;Database=persistence;Username=postgres;Password=postgres;Persist Security Info=True"
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"NeedUseKeyCloak": false,
|
||||||
|
"KeyCloakAuthentication": {
|
||||||
|
"Audience": "account",
|
||||||
|
"Host": "http://192.168.0.10:8321/realms/Persistence"
|
||||||
|
},
|
||||||
|
"AuthUser": {
|
||||||
|
"username": "myuser",
|
||||||
|
"password": 12345,
|
||||||
|
"clientId": "webapi",
|
||||||
|
"grantType": "password",
|
||||||
|
"http://schemas.xmlsoap.org/ws/2005/05/identity /claims/nameidentifier": "7d9f3574-6574-4ca3-845a-0276eb4aa8f6"
|
||||||
|
},
|
||||||
|
"ClientUrl": "http://localhost:5000/"
|
||||||
|
}
|
31
.docker/compose.yaml
Normal file
31
.docker/compose.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
networks:
|
||||||
|
persistence:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: timescale/timescaledb:latest-pg16
|
||||||
|
container_name: some-timescaledb-16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
networks:
|
||||||
|
- persistence
|
||||||
|
ports:
|
||||||
|
- "5462:5432"
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
image: git.ddrilling.ru/ddrilling/persistence:latest
|
||||||
|
container_name: persistence
|
||||||
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
networks:
|
||||||
|
- persistence
|
||||||
|
ports:
|
||||||
|
- "1111:8080"
|
||||||
|
volumes:
|
||||||
|
- ./appsettings.json:/app/appsettings.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user