29 lines
673 B
YAML
29 lines
673 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
balance-sheet-portal:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: balance-sheet-portal:latest
|
|
container_name: balance-sheet-portal
|
|
restart: unless-stopped
|
|
expose:
|
|
- "3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- DATA_PATH=/app/data/portal-data.json
|
|
volumes:
|
|
- portal_data:/app/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
portal_data:
|
|
name: balance_sheet_portal_data
|
|
driver: local
|