diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml
index f9122d2..5dc13f9 100644
--- a/.gitea/workflows/ci.yaml
+++ b/.gitea/workflows/ci.yaml
@@ -38,4 +38,5 @@ jobs:
run: |
dotnet publish \
--configuration Release --os linux --arch x64 \
- /t:PublishContainer -p ContainerRegistry=${{ vars.DOCKER_GITEA_DOMAIN }}
\ No newline at end of file
+ /t:PublishContainer -p ContainerRegistry=${{ vars.DOCKER_GITEA_DOMAIN }} \
+ -p ContainerRepository=ebolo/caddy-manager
\ No newline at end of file
diff --git a/CaddyManager/CaddyManager.csproj b/CaddyManager/CaddyManager.csproj
index 5097878..4e70ac2 100644
--- a/CaddyManager/CaddyManager.csproj
+++ b/CaddyManager/CaddyManager.csproj
@@ -6,7 +6,7 @@
enable
Linux
13
- ebolo/caddy-manager
+ caddy-manager
true
true
diff --git a/README.md b/README.md
index afd3439..fad9248 100644
--- a/README.md
+++ b/README.md
@@ -131,7 +131,7 @@ This repository can be cloned and then built with DotNet. Using the `dotnet publ
git clone https://pikachu-gitea.duydao.org/ebolo/CaddyManager.git
cd CaddyManager
```
-2. Login to the container registry
+2. Login to the container registry (optional, only need to publish to a remote registry)
```shell
docker login -u $USER_NAME $REGISTRY_URL
```
@@ -139,12 +139,16 @@ This repository can be cloned and then built with DotNet. Using the `dotnet publ
```shell
dotnet publish --os linux --arch x64 /t:PublishContainer -p ContainerRegistry=$REGISTRY_URL
```
+ if publishing to only the local machine, the `ContainerRegistry` parameter can be omitted.
+ ```shell
+ dotnet publish --os linux --arch x64 /t:PublishContainer
+ ```
Then the container can be run with Docker compose:
```yaml
services:
caddy:
- image: $REGISTRY_URL/ebolo/caddy-manager:latest
+ image: caddy-manager:latest
container_name: caddy-manager
restart: always
environment:
@@ -162,8 +166,8 @@ services:
Example of `.env` file. The `UID` and `GID` are the user and group ID of the host user having the permission to write to the Caddy configuration directory:
```shell
-UID=1000
-GID=1000
+UID=1000 # can be 0 as root user
+GID=1000 # can be 0 as root group
```
(back to top)