Fix production deployment issues

This commit is contained in:
2026-03-28 13:57:57 +03:00
Unverified
parent 30ab4d9190
commit 3caadde6ff
14 changed files with 170 additions and 105 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
fromchat.ru {
reverse_proxy 172.18.0.1:8301 host.docker.internal:8301 172.17.0.1:8301 {
lb_policy first
header_up X-Real-IP {remote_host}
reverse_proxy frontend:8301 {
header_up X-Real-IP {remote_host}
}
# Security headers
+1 -1
View File
@@ -172,7 +172,7 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- caddy_data:/root/site/certs
- caddy:/root/site/certs
environment:
XDG_DATA_HOME: /root/site/certs
XDG_CONFIG_HOME: /root/site/certs
+3 -2
View File
@@ -10,11 +10,12 @@ StartLimitBurst=3
Type=simple
User=root
Group=root
ExecStart=/bin/docker compose up
ExecStop=/bin/docker compose down
ExecStart=/bin/bash -c "COMPOSE_PROFILES=production docker compose up --remove-orphans --force-recreate"
ExecStop=/bin/bash -c "COMPOSE_PROFILES=production docker compose down --remove-orphans"
WorkingDirectory=/home/denis0001-dev/actions-runner/_work/FromChat/FromChat/deployment
Restart=always
RestartSec=10
StartLimitBurst=3
# Security settings
NoNewPrivileges=true