Files
web-cad/docker-compose.final.yml
T

35 lines
729 B
YAML

version: '3.8'
services:
backend:
build: ./backend
ports:
- "5000:5000"
environment:
- NODE_ENV=production
- JWT_SECRET=6151504445a6e5defbe6888f91d002bbd5368f0af5dc38ce6bf25606818f0b3b
volumes:
- sqlite_data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build: ./frontend
expose:
- "80"
depends_on:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:80 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
sqlite_data: