Add Caddy to deployment

This commit is contained in:
2025-12-31 21:01:57 +03:00
Unverified
parent e163484fe5
commit 0469b93274
4 changed files with 112 additions and 1 deletions
+17
View File
@@ -42,6 +42,23 @@ services:
- action: rebuild
path: package.json
caddy:
build:
context: ./caddy
dockerfile: Dockerfile
restart: unless-stopped
profiles: ["prod"]
ports:
- "80:80"
- "443:443"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- certs:/root/site/certs
environment:
XDG_DATA_HOME: /root/site/certs
XDG_CONFIG_HOME: /root/site/certs
volumes:
data:
name: fromchat-data