44 lines
790 B
YAML
44 lines
790 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3001:3001"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- PORT=3001
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- abe-data:/app/data
|
|
- abe-reports:/app/reports
|
|
- abe-logs:/app/logs
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001/health/live"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 15s
|
|
retries: 3
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5173:80"
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
abe-data:
|
|
abe-reports:
|
|
abe-logs:
|
|
|
|
networks:
|
|
default:
|
|
name: abe-network
|