version: '3.8' services: rackmapper: build: . container_name: rackmapper ports: - "3001:3001" environment: - NODE_ENV=production - PORT=3001 - DATABASE_URL=file:/app/data/rackmapper.db - ADMIN_USERNAME=${ADMIN_USERNAME:-admin} - ADMIN_PASSWORD=${ADMIN_PASSWORD} - JWT_SECRET=${JWT_SECRET} - JWT_EXPIRY=${JWT_EXPIRY:-8h} volumes: # Persists SQLite database across container restarts - ./data:/app/data restart: unless-stopped healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/auth/me"] interval: 30s timeout: 5s retries: 3 start_period: 10s