forked from trykimu/videoeditor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.54 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
services:
nginx:
image: nginx:alpine
container_name: videoeditor-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt:/etc/letsencrypt:ro # Mount certs read-only
depends_on:
- frontend
- backend
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
VITE_SUPABASE_URL: ${VITE_SUPABASE_URL}
VITE_SUPABASE_ANON_KEY: ${VITE_SUPABASE_ANON_KEY}
container_name: videoeditor-frontend
env_file:
- .env
environment:
# Ensure server-side code can construct proper callback URLs
AUTH_BASE_URL: https://trykimu.com
AUTH_TRUSTED_ORIGINS: https://trykimu.com,https://www.trykimu.com
AUTH_COOKIE_DOMAIN: trykimu.com
NODE_ENV: production
HOST: 0.0.0.0
PORT: 3000
# ports:
# - "3000:3000"
depends_on:
- backend
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: videoeditor-backend
env_file:
- .env
environment:
AUTH_BASE_URL: https://trykimu.com
AUTH_TRUSTED_ORIGINS: https://trykimu.com,https://www.trykimu.com
AUTH_COOKIE_DOMAIN: trykimu.com
NODE_ENV: production
PORT: 8000
# ports:
# - "8000:8000"
volumes:
- ./out:/app/out
# Memory configuration for video rendering
mem_limit: 2g
memswap_limit: 2g
shm_size: 1g
fastapi:
build:
context: ./backend
dockerfile: Dockerfile
container_name: videoeditor-fastapi