-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (101 loc) · 2.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (101 loc) · 2.58 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
100
101
102
103
104
105
106
107
108
109
110
services:
redis:
image: redis:alpine
container_name: videoq-redis
networks:
- videoq-network
postgres:
image: pgvector/pgvector:pg17
container_name: videoq-postgres
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- videoq-network
backend:
build: ./backend
container_name: videoq-backend
env_file:
- .env
volumes:
- ./backend:/app
- staticfiles:/app/staticfiles
depends_on:
- postgres
- redis
networks:
- videoq-network
celery-worker:
build: ./backend
container_name: videoq-celery-worker
command: celery -A videoq worker --loglevel=info
env_file:
- .env
volumes:
- ./backend:/app
depends_on:
- redis
- postgres
networks:
- videoq-network
frontend:
build:
context: ./frontend
args:
# Vite build-time API base URL (recommended: "/api" when using the included nginx reverse proxy)
- VITE_API_URL=${VITE_API_URL:-/api}
- VITE_USE_S3_STORAGE=${USE_S3_STORAGE:-false}
- VITE_MAX_VIDEO_UPLOAD_SIZE_MB=${MAX_VIDEO_UPLOAD_SIZE_MB:-500}
- VITE_OPERATOR_NAME=${VITE_OPERATOR_NAME:-}
- VITE_OPERATOR_REPRESENTATIVE=${VITE_OPERATOR_REPRESENTATIVE:-}
- VITE_OPERATOR_EMAIL=${VITE_OPERATOR_EMAIL:-}
- VITE_OPERATOR_ADDRESS=${VITE_OPERATOR_ADDRESS:-}
- VITE_OPERATOR_PHONE=${VITE_OPERATOR_PHONE:-}
container_name: videoq-frontend
env_file:
- .env
depends_on:
- backend
networks:
- videoq-network
nginx:
image: nginx:alpine
container_name: videoq-nginx
command: /bin/sh -c "envsubst '$$MAX_VIDEO_UPLOAD_SIZE_MB' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf && nginx -g 'daemon off;'"
environment:
- MAX_VIDEO_UPLOAD_SIZE_MB=${MAX_VIDEO_UPLOAD_SIZE_MB:-500}
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf.template:ro
- staticfiles:/static
- ./backend/media:/media
depends_on:
- backend
- frontend
networks:
- videoq-network
gateway:
image: caddy:2-alpine
container_name: videoq-gateway
ports:
- "80:80"
- "443:443"
- "443:443/udp"
environment:
- SITE_ADDRESS=${SITE_ADDRESS:-http://localhost}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
- nginx
networks:
- videoq-network
volumes:
staticfiles:
postgres_data:
caddy_data:
caddy_config:
networks:
videoq-network:
driver: bridge