-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (101 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
110 lines (101 loc) · 2.27 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
version: '3'
services:
mcp:
build:
context: mcp
dockerfile: Dockerfile
volumes:
- ./mcp:/mcp
command: ["/home/user/venv/bin/uvicorn", "main:app", "--host", "0.0.0.0", "--port", "11854"]
django:
build:
context: django
dockerfile: Dockerfile
env_file: "django.env"
environment:
- ENV=${ENV}
- http_proxy_url=${http_proxy_url}
volumes:
- .:/workspace:cached
- ./django:/django
- media:/data/media
links:
- redis
depends_on:
- celery
- redis
- websocketserver
celery:
build:
context: django
dockerfile: Dockerfile
env_file: "django.env"
environment:
- ENV=${ENV}
- http_proxy_url=${http_proxy_url}
volumes:
- ./django:/django
- media:/data/media
- artifacts:/data/artifacts
links:
- redis
depends_on:
- redis
- websocketserver
- mcp
entrypoint: /home/user/venv/bin/celery -A mysite worker -l INFO --concurrency=1
websocketserver:
build:
context: django
dockerfile: Dockerfile
volumes:
- ./django:/django
links:
- redis
depends_on:
- redis
ports:
- "9000:9000"
entrypoint: /home/user/venv/bin/python -u websocket_server.py --redis-host redis
redis:
image: redis
builder:
build:
context: react_builder
dockerfile: Dockerfile
volumes:
# Mount the root folder that contains .git
- .:/workspace:cached
- ./react_builder:/app
command: /home/node/venv/bin/fastapi dev --host 0.0.0.0 --port 8888 app
nextjs:
build:
context: nextjs_app
dockerfile: Dockerfile
volumes:
- ./nextjs_app:/home/node/nextjs_app
ports:
- "3000:3000"
command: "./entrypoint.sh"
nginx:
image: nginx
depends_on:
- django
- nextjs
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/templates
- media:/data/media
- artifacts:/data/artifacts
environment:
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx
NGINX_HOST: localhost
NGINX_PORT: 80
NGINX_APP_SERVER_NAME: django
NGINX_APP_SERVER_PORT: 8000
NGINX_NEXTJS_SERVER_NAME: nextjs
NGINX_NEXTJS_SERVER_PORT: 3000
volumes:
media:
artifacts: