-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
59 lines (57 loc) · 1.71 KB
/
docker-compose.production.yml
File metadata and controls
59 lines (57 loc) · 1.71 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
# Production overrides — use with: docker compose -f docker-compose.yml -f docker-compose.production.yml up -d
# Or deploy via Coolify with per-service compose files.
services:
web:
build:
context: ./apps/web
dockerfile: Dockerfile
target: production
restart: unless-stopped
ports:
- "3001:3000"
depends_on:
- directus
environment:
NODE_ENV: production
PORT: 3000
DIRECTUS_URL: http://directus:8055
DIRECTUS_PUBLIC_URL: ${DIRECTUS_PUBLIC_URL}
PLAUSIBLE_DOMAIN: ${PLAUSIBLE_DOMAIN}
PLAUSIBLE_API_HOST: ${PLAUSIBLE_API_HOST}
SENTRY_DSN: ${SENTRY_DSN}
VITE_SENTRY_DSN: ${VITE_SENTRY_DSN}
CSRF_SECRET: ${CSRF_SECRET}
TURNSTILE_SITE_KEY: ${TURNSTILE_SITE_KEY}
TURNSTILE_SECRET_KEY: ${TURNSTILE_SECRET_KEY}
API_URL: http://api:4001
api:
build:
context: ./apps/api
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "4001:4001"
depends_on:
- directus
environment:
NODE_ENV: production
API_PORT: 4001
DIRECTUS_URL: http://directus:8055
DIRECTUS_TOKEN: ${DIRECTUS_TOKEN}
TWENTY_API_URL: http://twenty-server:3000
TWENTY_API_KEY: ${TWENTY_API_KEY}
CORS_ORIGIN: ${SITE_URL}
INTERNAL_API_KEY: ${INTERNAL_API_KEY}
RESEND_API_KEY: ${RESEND_API_KEY}
RESEND_FROM_EMAIL: ${RESEND_FROM_EMAIL}
ADMIN_NOTIFICATION_EMAIL: ${ADMIN_NOTIFICATION_EMAIL}
DISCORD_WEBHOOK_URL: ${DISCORD_WEBHOOK_URL}
SENTRY_DSN: ${SENTRY_DSN}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4001/health"]
interval: 10s
timeout: 5s
retries: 3
directus:
environment:
CORS_ORIGIN: ${SITE_URL}