-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathdocker-compose-deploy.yml
More file actions
43 lines (38 loc) · 929 Bytes
/
docker-compose-deploy.yml
File metadata and controls
43 lines (38 loc) · 929 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
39
40
41
42
43
services:
# Redis缓存和消息队列
redis:
image: redis:7-alpine
restart: unless-stopped
# Django后端
backend:
image: xhongc/ai_story-backend
restart: unless-stopped
volumes:
- ./data/backend:/app/backend/data
- ./storage:/app/storage
environment:
- DJANGO_SETTINGS_MODULE=config.settings.production
- REDIS_HOST=redis
depends_on:
- redis
# Celery Worker
celery:
image: xhongc/ai_story-backend
command: celery -A config worker -l info -P gevent
restart: unless-stopped
volumes:
- ./data/backend:/app/backend/data
- ./storage:/app/storage
environment:
- DJANGO_SETTINGS_MODULE=config.settings.production
- REDIS_HOST=redis
depends_on:
- redis
# Vue前端
frontend:
image: xhongc/ai_story-frontend
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- backend