Fix deployment

This commit is contained in:
2025-12-31 21:34:16 +03:00
Unverified
parent 0469b93274
commit de34747a34
4 changed files with 18 additions and 6 deletions
-1
View File
@@ -6,7 +6,6 @@
FROM caddy:2-builder AS builder
RUN xcaddy build \
--with github.com/mholt/caddy-ratelimit
RUN curl -o /etc/ssl/cloudflare-origin.crt https://developers.cloudflare.com/ssl/static/origin_ca_rsa_root.pem
FROM caddy:2
+5 -4
View File
@@ -1,6 +1,6 @@
services:
backend:
build:
build:
dockerfile: deployment/Dockerfile.backend
context: ..
environment:
@@ -22,7 +22,7 @@ services:
path: ../backend/requirements.txt
frontend:
build:
build:
dockerfile: deployment/frontend/Dockerfile
context: ..
environment:
@@ -47,7 +47,6 @@ services:
context: ./caddy
dockerfile: Dockerfile
restart: unless-stopped
profiles: ["prod"]
ports:
- "80:80"
- "443:443"
@@ -63,4 +62,6 @@ volumes:
data:
name: fromchat-data
logs:
name: fromchat-logs
name: fromchat-logs
certs:
name: fromchat-certs
+1 -1
View File
@@ -10,7 +10,7 @@ StartLimitBurst=3
Type=simple
User=root
Group=root
ExecStart=/bin/docker compose up --profile prod
ExecStart=/bin/docker compose up
ExecStop=/bin/docker compose down
WorkingDirectory=/home/denis0001-dev/actions-runner/_work/FromChat/FromChat/deployment
Restart=always