docker + css tweaks + samediMalin

This commit is contained in:
nessar committed 2025-10-29 01:23:15 +01:00
1 parent 865555a19b
commit 2b552cf5cd
9 files changed
+191 -11

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
version: "3.8"
services:
vac-optimizer:
build:
context: .
dockerfile: Dockerfile
image: vac-optimizer:latest
container_name: vac-optimizer-prod
restart: always
ports:
- "80:4000"
environment:
- NODE_ENV=production
- PORT=4000
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:4000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
cpus: "1.0"
memory: 512M
reservations:
cpus: "0.5"
memory: 256M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- vac-optimizer-network
networks:
vac-optimizer-network:
driver: bridge