-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
86 lines (86 loc) · 2.47 KB
/
docker-compose.yaml
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
version: '3.7'
services:
flux-webinterface:
depends_on:
- flux-ecosystem
build:
context: .
target: webinterface
dockerfile: Dockerfile
environment:
NGINX_API_DOWNSTREAM: flux-ecosystem
flux-ecosystem:
depends_on:
- flux-event-storage
- flux-globalstream-storage
- flux-projection-storage
build:
context: .
target: flux-ecosystem
dockerfile: Dockerfile
ports:
- 8010:9501
environment:
MYSQL_PORT: 3306
PROJECTION_MYSQL_HOST: flux-projection-storage
PROJECTION_MYSQL_DRIVER: Pdo_Mysql
PROJECTION_MYSQL_DATABASE: projection
PROJECTION_MYSQL_USER: user
PROJECTION_MYSQL_PASSWORD: password
EVENTS_MYSQL_HOST: flux-event-storage
EVENTS_MYSQL_DRIVER: Pdo_Mysql
EVENTS_MYSQL_DATABASE: events
EVENTS_MYSQL_USER: user
EVENTS_MYSQL_PASSWORD: password
STREAM_MYSQL_HOST: flux-globalstream-storage
STREAM_MYSQL_DRIVER: Pdo_Mysql
STREAM_MYSQL_DATABASE: stream
STREAM_MYSQL_TABLE: stream
STREAM_MYSQL_USER: user
STREAM_MYSQL_PASSWORD: password
FILE_SHARE_DIRECTORY_PATH: /app/data
DIRECTORY_PATH_SRC_FILES: /app/flux-eco/src
PHP_VERSION: php_8-0
SWOOLE_HTTP_PORT: 9501
SWOOLE_HTTP_WORKER_NUM: 1
SWOOLE_HTTP_MAX_CONN: 10000
SWOOLE_HTTP_MAX_REQUEST: 10000
SWOOLE_HTTP_IPC_MODE: 2 #SWOOLE_IPC_MSGQUEUE
SWOOLE_HTTP_TASK_WORKER_NUM: 1
SWOOLE_HTTP_TASK_IPC_MODE: 2 #SWOOLE_IPC_MSGQUEUE
SWOOLE_HTTP_TASK_MAX_REQUEST: 5000
SWOOLE_HTTP_DISPATCH_MODE: 1
SWOOLE_HTTP_DAEMONIZE: 0
SWOOLE_HTTP_BACKLOG: 2048
SWOOLE_HTTP_OPEN_TCP_KEEPALIVE: 1
SWOOLE_HTTP_TCP_DEFER_ACCEPT: 5
SWOOLE_HTTP_OPEN_TCP_NODELAY: 1
SWOOLE_HTTP_LOG_FILE_PATH_NAME: /app/flux-app/logs/http.log
URN_PREFIX: ch:flux-ecosystem
flux-event-storage:
image: mysql
ports:
- 3304:3306
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: events
MYSQL_USER: user
MYSQL_PASSWORD: password
flux-globalstream-storage:
image: mysql
ports:
- 3305:3306
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: stream
MYSQL_USER: user
MYSQL_PASSWORD: password
flux-projection-storage:
image: mysql
ports:
- 3303:3306
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: projection
MYSQL_USER: user
MYSQL_PASSWORD: password