-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 988 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 988 Bytes
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
38
version: "3.8"
services:
retouchly:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN}
- IYZICO_API_KEY=${IYZICO_API_KEY}
- IYZICO_API_SECRET=${IYZICO_API_SECRET}
- IYZICO_BASE_URL=${IYZICO_BASE_URL}
env_file:
- .env.production
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Redis for caching (if needed in future)
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# restart: unless-stopped
# volumes:
# - redis_data:/data
# volumes:
# redis_data: