forked from sphinx-quant/sphinx-quant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 1.12 KB
/
docker-compose.yml
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
version: '3'
services:
frontend:
image: sphinxquant/frontend:latest
restart: always
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8000:80"
backend:
image: sphinxquant/backend:latest
restart: always
environment:
MYSQL_HOST: mysql
MYSQL_DATABASE: sphinxquant
MYSQL_ROOT_PASSWORD: sphinxquant
RABBITMQ_HOST: rabbitmq
RABBITMQ_USER: sphinxquant
RABBITMQ_PASS: sphinxquant
REDIS_HOST: redis
REDIS_PASS: sphinxquant
mysql:
image: mysql:5
restart: always
# ports:
# - "3306:3306"
environment:
MYSQL_DATABASE: sphinxquant
MYSQL_ROOT_PASSWORD: sphinxquant
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
rabbitmq:
image: rabbitmq:3-alpine
restart: always
# ports:
# - "5672:5672"
# - "5671:5671"
# - "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: sphinxquant
RABBITMQ_DEFAULT_PASS: sphinxquant
redis:
image: redis:alpine
restart: always
command: ['redis-server', '--requirepass', 'sphinxquant']