Compare commits
4 Commits
6788d62cb1
...
f3d9ab3aa6
| Author | SHA1 | Date | |
|---|---|---|---|
| f3d9ab3aa6 | |||
| 51c4a583c3 | |||
| 488407a96c | |||
| 0c4d0209b7 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -13,3 +13,6 @@ 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
|
||||||
|
|||||||
@ -3,6 +3,10 @@
|
|||||||
<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">
|
||||||
|
|||||||
@ -1,25 +1,32 @@
|
|||||||
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:
|
||||||
# - 5000:5000
|
- 5040:5000
|
||||||
networks:
|
networks:
|
||||||
sodoff_network:
|
- sodoff-backend
|
||||||
# use static ip address for nginx proxy configuration
|
restart: unless-stopped
|
||||||
# - if run multiple instances of this docker, each instance should use unique address
|
|
||||||
# - if do not use proxy, port mapping as above should be enough
|
db:
|
||||||
ipv4_address: 172.16.99.10
|
container_name: sodoff-jsgr-db
|
||||||
|
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_network:
|
sodoff-backend:
|
||||||
name: sodoff_network
|
|
||||||
# bellow network configuration should be put in at least one file
|
volumes:
|
||||||
# - but it may be in many or all
|
postgres_data:
|
||||||
# - without it it will work like `external: true`
|
|
||||||
driver: bridge
|
|
||||||
ipam:
|
|
||||||
config:
|
|
||||||
- subnet: "172.16.99.0/24"
|
|
||||||
16
sodoff.sln
16
sodoff.sln
@ -1,22 +1,28 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 18
|
||||||
VisualStudioVersion = 17.0.31903.59
|
VisualStudioVersion = 18.9.12120.119 stable
|
||||||
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
|
||||||
|
|||||||
@ -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": "SQLite",
|
"DbProvider": "PostgreSQL",
|
||||||
|
|
||||||
"// 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": "",
|
||||||
|
|||||||
@ -16,6 +16,8 @@
|
|||||||
<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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user