From 497d415fb6b3e0b756126fbef512feb61cd14425 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Wed, 8 Nov 2023 19:49:23 +0100 Subject: [PATCH] feat: Item Pool service --- .gitignore | 2 ++ Server/Program.cs | 1 + Server/docker-compose.yml | 13 +++++++++++++ Server/settings.Development.json | 5 +++++ 4 files changed, 21 insertions(+) diff --git a/.gitignore b/.gitignore index d0af085..4789088 100644 --- a/.gitignore +++ b/.gitignore @@ -482,3 +482,5 @@ $RECYCLE.BIN/ .vscode .nuke + +wk-data diff --git a/Server/Program.cs b/Server/Program.cs index 3241823..70ff82c 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -24,6 +24,7 @@ builder.Services.AddDbContext(); builder.Services.AddSingleton(); builder.Services.AddHostedService(provider => provider.GetService() ?? throw new InvalidOperationException()); +builder.Services.AddSingleton(); builder.Services.AddMassTransit(x => { x.UsingInMemory((context, configurator) => configurator.ConfigureEndpoints(context)); diff --git a/Server/docker-compose.yml b/Server/docker-compose.yml index 1efa332..6ba37d3 100644 --- a/Server/docker-compose.yml +++ b/Server/docker-compose.yml @@ -11,10 +11,16 @@ - DB:Port=5432 - DB:Username=continuity - DB:Password=continuity + - Game:Data:Path=/app/data networks: - continuity ports: - "10001:10001" + volumes: + - type: bind + source: game-data + target: /app/data + read_only: true db: container_name: continuity-db @@ -37,3 +43,10 @@ networks: continuity: volumes: db-data: + + game-data: + driver: local + driver_opts: + type: none + device: ../wk-data + o: bind diff --git a/Server/settings.Development.json b/Server/settings.Development.json index 1b64c70..ded1040 100644 --- a/Server/settings.Development.json +++ b/Server/settings.Development.json @@ -8,5 +8,10 @@ }, "Testing": { "CreateAccountOnLogin": true + }, + "Game":{ + "Data":{ + "Path": "../wk-data" + } } }