-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# =============================================================================
# Docker Compose for Local Testing
# =============================================================================
# Use this to test the Docker build locally before deploying to Easypanel
# Usage:
# docker-compose up --build
# Open http://localhost:3000
# =============================================================================
version: '3.8'
services:
flowwink:
build:
context: .
dockerfile: Dockerfile
args:
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_PUBLISHABLE_KEY=${VITE_SUPABASE_PUBLISHABLE_KEY}
- VITE_SUPABASE_PROJECT_ID=${VITE_SUPABASE_PROJECT_ID}
ports:
- "3000:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# =============================================================================
# Notes:
# - Environment variables must be set in .env file or exported before running
# - Vite bakes env vars into the build, so changes require rebuild
# - Variables are passed as build ARGS (not runtime environment)
# - For production deployment, use Easypanel's build argument settings
# =============================================================================