forked from FeatureProbe/FeatureProbe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (107 loc) · 3 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
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
111
112
113
114
# This docker compose setup configures:
# - the Feature Probe API instance + the necessary backing MySQL database
# - the Feature Probe UI
# - the Feature Probe Server
# - the Feature Probe OpenAPI Document
version: "2.3"
services:
backendAPI:
image: featureprobe/api
ports:
- "4008:4008"
environment:
- spring.datasource.jdbc-url=jdbc:mysql://database:13306/feature_probe?useSSL=false&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&rewriteBatchedStatements=TRUE&useSSL=false&serverTimezone=Asia/Shanghai
- spring.profiles.active=online
- spring.jpa.show-sql=false
- logging.level.root=INFO
- logging.level.org.hibernate.SQL=INFO
- logging.level.org.hibernate.type.descriptor.sql.BasicBinder=INFO
- app.analysis-base-url=http://analysisAPI:4006
- app.server-base-urls=http://127.0.0.1:4009/server
- server.port=4008
- TZ=Asia/Shanghai
networks:
- featureProbeNet
depends_on:
- database
- analysisAPI
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:4008/actuator/health"]
timeout: 5s
interval: 10s
retries: 10
serverAPI:
image: featureprobe/server
ports:
- "4007:4007"
- "4011:4011"
environment:
- RUST_LOG=info
- FP_SERVER_PORT=4007
- FP_REALTIME_PORT=4011
- FP_TOGGLES_URL=http://backendAPI:4008/internal/server/toggles
- FP_EVENTS_URL=http://backendAPI:4008/internal/server/events
- FP_KEYS_URL=http://backendAPI:4008/internal/server/sdk_keys
- FP_ANALYSIS_URL=http://analysisAPI:4006/events
- FP_REFRESH_SECONDS=3
- TZ=Asia/Shanghai
networks:
- featureProbeNet
depends_on:
backendAPI:
condition: service_healthy
analysisAPI:
condition: service_started
ui:
image: featureprobe/ui
ports:
- "4009:4009"
environment:
- TZ=Asia/Shanghai
volumes:
- ./nginx_configs/default.conf:/etc/nginx/conf.d/default.conf
networks:
- featureProbeNet
depends_on:
- backendAPI
- serverAPI
- redoc
- database
analysisAPI:
image: featureprobe/analysis
ports:
- "4006:4006"
environment:
- TZ=Asia/Shanghai
- app.datasource.jdbcUrl=jdbc:mysql://database:13306/feature_probe_events
- app.datasource.username=root
- app.datasource.password=root
- spring.profiles.active=online
networks:
- featureProbeNet
depends_on:
- database
database:
image: mariadb:10.5.8
ports:
- "13306:13306"
networks:
- featureProbeNet
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=feature_probe
- MYSQL_TCP_PORT=13306
volumes:
- ./scripts/db:/docker-entrypoint-initdb.d
redoc:
image: redocly/redoc
ports:
- "4010:4010"
environment:
- SPEC_URL=/api/v3/api-docs.yaml
- PORT=4010
- PAGE_TITLE=Feature Probe OpenAPI
networks:
- featureProbeNet
networks:
featureProbeNet: