🐳 追加 DockerCompose 支持

This commit is contained in:
li-chx 2025-11-14 14:30:20 +08:00
parent e12a8d5db4
commit 45d4342454
5 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,6 @@
<Solution>
<Project Path="docker-compose.dcproj">
<Build />
</Project>
<Project Path="SQLBackupToCOS/SQLBackupToCOS.csproj" />
</Solution>

15
docker-compose.dcproj Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
<PropertyGroup Label="Globals">
<ProjectVersion>2.1</ProjectVersion>
<DockerTargetOS>Linux</DockerTargetOS>
<ProjectGuid>81dded9d-158b-e303-5f62-77a2896d2a5a</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<None Include="docker-compose.override.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.yml" />
<None Include=".dockerignore" />
</ItemGroup>
</Project>

View File

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
services:
sqlbackuptocos:
image: ${DOCKER_REGISTRY-}sqlbackuptocos
build:
context: .
dockerfile: SQLBackupToCOS/Dockerfile

11
launchSettings.json Normal file
View File

@ -0,0 +1,11 @@
{
"profiles": {
"Docker Compose": {
"commandName": "DockerCompose",
"commandVersion": "1.0",
"serviceActions": {
"sqlbackuptocos": "StartDebugging"
}
}
}
}