Prepare production deploy for belixa.ru

This commit is contained in:
2026-06-03 01:12:20 +05:00
parent b0857cb01b
commit 07a0219bcc
15 changed files with 467 additions and 220 deletions
+4 -5
View File
@@ -12,12 +12,12 @@ services:
expose:
- "3000"
volumes:
- uploads_data:/app/uploads
- ./uploads:/app/uploads
- sqlite_data:/app/data
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/ || exit 1"]
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/api/faq >/dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 5
@@ -31,20 +31,19 @@ services:
app:
condition: service_healthy
ports:
- "10.20.0.20:18073:80"
- "10.20.0.25:18083:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health || exit 1"]
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health | grep -q ok"]
interval: 30s
timeout: 5s
retries: 5
start_period: 10s
volumes:
uploads_data:
sqlite_data:
networks: