-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdokploy.yaml
More file actions
99 lines (88 loc) · 1.64 KB
/
dokploy.yaml
File metadata and controls
99 lines (88 loc) · 1.64 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Dokploy Configuration File
# This file configures the deployment for Dokploy platform
name: flower-app
type: docker-compose
# Build configuration
build:
dockerfile: docker-compose.yml
# Environment configuration
env:
- name: NODE_ENV
value: production
- name: POSTGRES_PASSWORD
generate: password
- name: JWT_SECRET
generate: secret
- name: JWT_REFRESH_SECRET
generate: secret
# Services configuration
services:
postgres:
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
enabled: true
api:
domains:
- api.${DOKPLOY_DOMAIN}
port: 3001
healthcheck:
path: /health
interval: 30s
env:
- DATABASE_URL
- JWT_SECRET
- JWT_REFRESH_SECRET
- OPENROUTER_API_KEY
web:
domains:
- ${DOKPLOY_DOMAIN}
- www.${DOKPLOY_DOMAIN}
port: 3000
healthcheck:
path: /
interval: 30s
env:
- NEXT_PUBLIC_API_URL=https://api.${DOKPLOY_DOMAIN}
- NEXT_PUBLIC_APP_URL=https://${DOKPLOY_DOMAIN}
# SSL Configuration
ssl:
enabled: true
provider: letsencrypt
email: ${SSL_EMAIL}
# Backup Configuration
backup:
enabled: true
schedule: "0 2 * * *" # Daily at 2 AM
retention: 7 # Keep 7 days of backups
services:
- postgres
# Resource Limits
resources:
postgres:
memory: 512M
cpu: 0.5
api:
memory: 1G
cpu: 1
web:
memory: 1G
cpu: 1
# Monitoring
monitoring:
enabled: true
metrics:
- cpu
- memory
- disk
- network
# Auto-scaling (optional)
autoscale:
web:
min: 1
max: 3
cpu_threshold: 80
api:
min: 1
max: 3
cpu_threshold: 80