-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
160 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0-jammy | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy | ||
|
||
USER app | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
EXPOSE 5000 | ||
|
||
ENV ASPNETCORE_ENVIRONMENT="Production" | ||
ENV ASPNETCORE_URLS="http://*:5000" | ||
EXPOSE 5001 | ||
|
||
COPY ./bin/publish /app | ||
|
||
WORKDIR /src | ||
|
||
COPY ./DockerMain.sh . | ||
|
||
WORKDIR /app | ||
|
||
RUN \ | ||
apt-get -y update && \ | ||
apt-get -y install curl && \ | ||
mkdir -p /remotely-data && \ | ||
sed -i 's/DataSource=Remotely.db/DataSource=\/remotely-data\/Remotely.db/' ./appsettings.json | ||
|
||
VOLUME "/remotely-data" | ||
|
||
RUN chmod +x "/src/DockerMain.sh" | ||
sed -i 's/DataSource=Remotely.db/DataSource=\/app\/AppData\/Remotely.db/' ./appsettings.json | ||
|
||
ENTRYPOINT ["/src/DockerMain.sh"] | ||
ENTRYPOINT ["dotnet", "Remotely_Server.dll"] | ||
|
||
HEALTHCHECK --interval=5m --timeout=3s \ | ||
CMD curl -f http://localhost:5000/api/healthcheck || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectVersion>2.1</ProjectVersion> | ||
<DockerComposeProjectName>remotely</DockerComposeProjectName> | ||
<DockerTargetOS>Linux</DockerTargetOS> | ||
<DockerPublishLocally>False</DockerPublishLocally> | ||
<ProjectGuid>90ec49b2-b56a-4ecd-8f63-2162dd140f7c</ProjectGuid> | ||
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction> | ||
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl> | ||
<DockerServiceName>server</DockerServiceName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="docker-compose.override.yml"> | ||
<DependentUpon>docker-compose.yml</DependentUpon> | ||
</None> | ||
<None Include="docker-compose.yml" /> | ||
<None Include=".dockerignore" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version: '3.4' | ||
|
||
services: | ||
server: | ||
build: | ||
context: ../Server | ||
dockerfile: Dockerfile.local | ||
environment: | ||
- ASPNETCORE_ENVIRONMENT=Development | ||
- ASPNETCORE_HTTP_PORTS=5000 | ||
- ASPNETCORE_HTTPS_PORTS=5001 | ||
- Remotely_ApplicationOptions__AllowApiLogin=false, | ||
#- Remotely_ApplicationOptions__BannedDevices__0=, | ||
- Remotely_ApplicationOptions__DataRetentionInDays=90, | ||
- Remotely_ApplicationOptions__DBProvider=SQLite, | ||
- Remotely_ApplicationOptions__EnableRemoteControlRecording=false, | ||
- Remotely_ApplicationOptions__EnableWindowsEventLog=false, | ||
- Remotely_ApplicationOptions__EnforceAttendedAccess=false, | ||
- Remotely_ApplicationOptions__ForceClientHttps=false, | ||
#- Remotely_ApplicationOptions__KnownProxies__0=, | ||
- Remotely_ApplicationOptions__MaxConcurrentUpdates=10, | ||
- Remotely_ApplicationOptions__MaxOrganizationCount=1, | ||
- Remotely_ApplicationOptions__MessageOfTheDay=, | ||
- Remotely_ApplicationOptions__RedirectToHttps=true, | ||
- Remotely_ApplicationOptions__RemoteControlNotifyUser=true, | ||
- Remotely_ApplicationOptions__RemoteControlRequiresAuthentication=true, | ||
- Remotely_ApplicationOptions__RemoteControlSessionLimit=3, | ||
- Remotely_ApplicationOptions__Require2FA=false, | ||
- Remotely_ApplicationOptions__SmtpDisplayName=, | ||
- Remotely_ApplicationOptions__SmtpEmail=, | ||
- Remotely_ApplicationOptions__SmtpHost=, | ||
- Remotely_ApplicationOptions__SmtpLocalDomain=, | ||
- Remotely_ApplicationOptions__SmtpCheckCertificateRevocation=true, | ||
- Remotely_ApplicationOptions__SmtpPassword=, | ||
- Remotely_ApplicationOptions__SmtpPort=587, | ||
- Remotely_ApplicationOptions__SmtpUserName=, | ||
- Remotely_ApplicationOptions__Theme=Dark, | ||
#- Remotely_ApplicationOptions__TrustedCorsOrigins__0=, | ||
- Remotely_ApplicationOptions__UseHsts=false, | ||
- Remotely_ApplicationOptions__UseHttpLogging=false | ||
ports: | ||
- "5000" | ||
- "5001" | ||
volumes: | ||
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro | ||
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro | ||
- remotely-data:/app/AppData | ||
|
||
volumes: | ||
remotely-data: | ||
name: remotely-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: '3.4' | ||
|
||
services: | ||
remotely: | ||
image: immybot/remotely | ||
volumes: | ||
- /remotely-data:/app/AppData | ||
build: | ||
context: ../Server | ||
dockerfile: Dockerfile | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
- ASPNETCORE_ENVIRONMENT=Production | ||
- ASPNETCORE_HTTP_PORTS=5000 | ||
- ASPNETCORE_HTTPS_PORTS=5001 | ||
- Remotely_ApplicationOptions__AllowApiLogin=false, | ||
#- Remotely_ApplicationOptions__BannedDevices__0=, | ||
- Remotely_ApplicationOptions__DataRetentionInDays=90, | ||
- Remotely_ApplicationOptions__DBProvider=SQLite, | ||
- Remotely_ApplicationOptions__EnableRemoteControlRecording=false, | ||
- Remotely_ApplicationOptions__EnableWindowsEventLog=false, | ||
- Remotely_ApplicationOptions__EnforceAttendedAccess=false, | ||
- Remotely_ApplicationOptions__ForceClientHttps=false, | ||
#- Remotely_ApplicationOptions__KnownProxies__0=, | ||
- Remotely_ApplicationOptions__MaxConcurrentUpdates=10, | ||
- Remotely_ApplicationOptions__MaxOrganizationCount=1, | ||
- Remotely_ApplicationOptions__MessageOfTheDay=, | ||
- Remotely_ApplicationOptions__RedirectToHttps=true, | ||
- Remotely_ApplicationOptions__RemoteControlNotifyUser=true, | ||
- Remotely_ApplicationOptions__RemoteControlRequiresAuthentication=true, | ||
- Remotely_ApplicationOptions__RemoteControlSessionLimit=3, | ||
- Remotely_ApplicationOptions__Require2FA=false, | ||
- Remotely_ApplicationOptions__SmtpDisplayName=, | ||
- Remotely_ApplicationOptions__SmtpEmail=, | ||
- Remotely_ApplicationOptions__SmtpHost=, | ||
- Remotely_ApplicationOptions__SmtpLocalDomain=, | ||
- Remotely_ApplicationOptions__SmtpCheckCertificateRevocation=true, | ||
- Remotely_ApplicationOptions__SmtpPassword=, | ||
- Remotely_ApplicationOptions__SmtpPort=587, | ||
- Remotely_ApplicationOptions__SmtpUserName=, | ||
- Remotely_ApplicationOptions__Theme=Dark, | ||
#- Remotely_ApplicationOptions__TrustedCorsOrigins__0=, | ||
- Remotely_ApplicationOptions__UseHsts=false, | ||
- Remotely_ApplicationOptions__UseHttpLogging=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"profiles": { | ||
"Docker Compose": { | ||
"commandName": "DockerCompose", | ||
"commandVersion": "1.0", | ||
"serviceActions": { | ||
"remotely": "StartDebugging" | ||
} | ||
} | ||
} | ||
} |