Compare commits

..

No commits in common. "f3d9ab3aa68fc29300551a532c1f052c8e3b31a6" and "6788d62cb141a4ca8d17c4b03263a3db06d1d2fc" have entirely different histories.

6 changed files with 25 additions and 47 deletions

3
.gitignore vendored
View File

@ -13,6 +13,3 @@ src/Properties
__pycache__/ __pycache__/
/src/Dlls/SmartFox2X.dll /src/Dlls/SmartFox2X.dll
/src/appsettings.Development.json /src/appsettings.Development.json
/launchSettings.json
/obj/Docker
/docker-compose.override.yml

View File

@ -3,10 +3,6 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectVersion>2.1</ProjectVersion> <ProjectVersion>2.1</ProjectVersion>
<DockerTargetOS>Linux</DockerTargetOS> <DockerTargetOS>Linux</DockerTargetOS>
<ProjectGuid>81dded9d-158b-e303-5f62-77a2896d2a5a</ProjectGuid>
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction>
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl>
<DockerServiceName>sodoff</DockerServiceName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="docker-compose.override.yml"> <None Include="docker-compose.override.yml">

View File

@ -1,32 +1,25 @@
version: '3.8'
services: services:
sodoff: sodoff:
container_name: sodoff-jsgr
image: ${DOCKER_REGISTRY-}sodoff
build: build:
context: . context: .
dockerfile: src/Dockerfile dockerfile: src/Dockerfile
ports: # ports:
- 5040:5000 # - 5000:5000
networks: networks:
- sodoff-backend sodoff_network:
restart: unless-stopped # use static ip address for nginx proxy configuration
# - if run multiple instances of this docker, each instance should use unique address
db: # - if do not use proxy, port mapping as above should be enough
container_name: sodoff-jsgr-db ipv4_address: 172.16.99.10
image: postgres:16.2-alpine
restart: unless-stopped
environment:
POSTGRES_USER: sodoff
POSTGRES_DB: sodoffdb
volumes:
- ./db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- sodoff-backend
networks: networks:
sodoff-backend: sodoff_network:
name: sodoff_network
volumes: # bellow network configuration should be put in at least one file
postgres_data: # - but it may be in many or all
# - without it it will work like `external: true`
driver: bridge
ipam:
config:
- subnet: "172.16.99.0/24"

View File

@ -1,28 +1,22 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18 # Visual Studio Version 17
VisualStudioVersion = 18.9.12120.119 stable VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sodoff", "src\sodoff.csproj", "{B0D39F12-DE8E-4289-82DD-C1F264CC280A}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sodoff", "src\sodoff.csproj", "{B0D39F12-DE8E-4289-82DD-C1F264CC280A}"
EndProject EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{81DDED9D-158B-E303-5F62-77A2896D2A5A}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Debug|Any CPU.Build.0 = Debug|Any CPU {B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Release|Any CPU.ActiveCfg = Release|Any CPU {B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Release|Any CPU.Build.0 = Release|Any CPU {B0D39F12-DE8E-4289-82DD-C1F264CC280A}.Release|Any CPU.Build.0 = Release|Any CPU
{81DDED9D-158B-E303-5F62-77A2896D2A5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{81DDED9D-158B-E303-5F62-77A2896D2A5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81DDED9D-158B-E303-5F62-77A2896D2A5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81DDED9D-158B-E303-5F62-77A2896D2A5A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@ -61,7 +61,7 @@
"LoadNonSoDData": true, "LoadNonSoDData": true,
"// DbProvider": "Select database backend to use: SQLite, PostgreSQL, MySQL (availability may depend on build options)", "// DbProvider": "Select database backend to use: SQLite, PostgreSQL, MySQL (availability may depend on build options)",
"DbProvider": "PostgreSQL", "DbProvider": "SQLite",
"// DbPath": "Path to SQLite database file. If empty, \"sodoff.db\" from current directory will be used.", "// DbPath": "Path to SQLite database file. If empty, \"sodoff.db\" from current directory will be used.",
"DbPath": "", "DbPath": "",

View File

@ -16,8 +16,6 @@
<UserSecretsId>c3333d84-1634-4905-8a19-70a8a5fcf69f</UserSecretsId> <UserSecretsId>c3333d84-1634-4905-8a19-70a8a5fcf69f</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>