chore(): infrastructure improvements

This commit is contained in:
ITQ
2026-02-12 14:44:25 +03:00
parent 9181d2980a
commit cb9692089f
19 changed files with 134 additions and 270 deletions
+7 -3
View File
@@ -3,6 +3,7 @@ services:
build:
context: ./src/backend
dockerfile: Containerfile
target: app
tags:
- lotty-backend:latest
pull: true
@@ -40,6 +41,7 @@ services:
build:
context: ./src/backend
dockerfile: Containerfile
target: app
tags:
- lotty-backend:latest
pull: true
@@ -66,7 +68,8 @@ services:
backend-staticfiles:
build:
context: ./src/backend
dockerfile: Containerfile.staticfiles
dockerfile: Containerfile
target: staticfiles
tags:
- lotty-backend-staticfiles:latest
pull: true
@@ -76,8 +79,8 @@ services:
- path: ./infrastructure/configs/backend/.env
required: false
healthcheck:
test: ["CMD-SHELL", "nginx", "-t", "||", "exit 1"]
interval: 1m30s
test: ["CMD", "wget", "-qO-", "http://localhost:1080"]
interval: 30s
timeout: 5s
start_period: 5s
start_interval: 2s
@@ -98,6 +101,7 @@ services:
build:
context: ./src/backend
dockerfile: Containerfile
target: app
tags:
- lotty-backend:latest
pull: true
+21
View File
@@ -0,0 +1,21 @@
services:
caddy:
image: docker.io/caddy:2-alpine
configs:
- source: caddy_config
target: /etc/caddy/Caddyfile
ports:
- name: http
target: 80
published: 80
host_ip: 0.0.0.0
protocol: tcp
app_protocol: http
networks:
- default
restart: unless-stopped
shm_size: 4mb
configs:
caddy_config:
file: ./infrastructure/configs/caddy/Caddyfile
+1
View File
@@ -104,6 +104,7 @@ services:
mc mb default/loki;
mc mb default/tempo;
mc mb default/pyroscope;
mc mb default/backend;
mc policy set public default/loki; true"
depends_on:
s3: