From 3e0b1e8a7a82027c990fd3567e71f57d41dfbbfa Mon Sep 17 00:00:00 2001 From: Duy Dao Date: Wed, 16 Jul 2025 09:07:23 +0700 Subject: [PATCH] feat: add Caddy Manager service configuration to Docker Compose with volume mappings --- compose.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index b39ca24..f57f1bc 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,4 +5,22 @@ restart: always network_mode: "host" security_opt: - - label:disable \ No newline at end of file + - label:disable + volumes: + - /root/compose/caddy/config:/etc/caddy + - /etc/localtime:/etc/localtime:ro + + caddy-manager: + image: ghcr.io/daothanhduy305/caddymanager + container_name: caddy-manager + restart: always + environment: + ASPNETCORE_ENVIRONMENT: "Production" + CaddyService__ConfigDir: "/config" + DockerService__CaddyContainerName: "caddy" + user: "1000:1000" + ports: + - "8080:8080" + volumes: + - /root/compose/caddy/config:/config + - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file