diff --git a/.docker/appsettings.json b/.docker/appsettings.json new file mode 100644 index 0000000..f6c57ef --- /dev/null +++ b/.docker/appsettings.json @@ -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/" +} diff --git a/.docker/compose.yaml b/.docker/compose.yaml new file mode 100644 index 0000000..646af62 --- /dev/null +++ b/.docker/compose.yaml @@ -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 +