forked from open-feature/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
168 lines (159 loc) · 4.45 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: '3.8'
services:
demo:
image: ghcr.io/open-feature/playground-app:v0.16.0 # x-release-please-version
# build:
# dockerfile: ./packages/app/Dockerfile
# context: .
ports:
- '30000:30000'
command:
# The default provider
- flagd
depends_on:
- flagd
- jaeger
- fib-service
volumes:
- ./config/flagd/flags.json:/opt/playground/config/flagd/flags.json
environment:
- FLAGD_HOST=flagd
- OTEL_EXPORTER_JAEGER_AGENT_HOST=jaeger
- OTEL_EXPORTER_JAEGER_AGENT_PORT=6832
- GO_FEATURE_FLAG_URL=http://go-feature-flag:1031
- GO_FEATURE_FLAG_WEB_URL=http://localhost:1031
- FIB_SERVICE_URL=http://fib-service:30001
- FLIPT_URL=http://flipt:8080
- FLIPT_WEB_URL=http://localhost:8080
- FIB_SERVICE_USER
- FIB_SERVICE_PASS
# Provider values come from the .env
- NEW_WELCOME_MESSAGE
- FIB_ALGO
- HEX_COLOR
# Feature Flag Vendor Keys come from the .env
## Server
- HARNESS_KEY
- SPLIT_KEY
- LD_KEY
- FLAGSMITH_ENV_KEY
- CLOUDBEES_APP_KEY
- CONFIGCAT_SDK_KEY
## Web
- HARNESS_KEY_WEB
- SPLIT_KEY_WEB
- LD_KEY_WEB
- FLAGSMITH_ENV_KEY_WEB
- CLOUDBEES_APP_KEY_WEB
- FLAGD_HOST_WEB
- FLAGD_PORT_WEB
- FLAGD_TLS_WEB
- CONFIGCAT_SDK_KEY_WEB
fib-service:
image: ghcr.io/open-feature/playground-fib-service:v0.16.0 # x-release-please-version
# build:
# dockerfile: ./packages/fibonacci-service/Dockerfile
# context: .
expose:
- '30001'
environment:
- FLAGD_HOST=flagd
- OTEL_EXPORTER_JAEGER_AGENT_HOST=jaeger
- OTEL_EXPORTER_JAEGER_AGENT_PORT=6832
- OTEL_SERVICE_NAME=fibonacci-service
- GO_FEATURE_FLAG_URL=http://go-feature-flag:1031
- FLIPT_URL=http://flipt:8080
- FIB_SERVICE_USER
- FIB_SERVICE_PASS
# Provider values come from the .env
- NEW_WELCOME_MESSAGE
- FIB_ALGO
- HEX_COLOR
# Feature Flag Vendor Keys come from the .env
- HARNESS_KEY
- SPLIT_KEY
- LD_KEY
- FLAGSMITH_ENV_KEY
- CLOUDBEES_APP_KEY
- CONFIGCAT_SDK_KEY
jaeger:
image: jaegertracing/all-in-one:1.60
expose:
- '6832/udp'
- '4317'
ports:
- '16686:16686'
otel-collector:
image: otel/opentelemetry-collector-contrib:0.105.0
restart: always
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ./config/otel/collector.yaml:/etc/otel-collector-config.yaml
expose:
- "1888" # pprof extension
- "8888" # Prometheus metrics exposed by the collector
- "8889" # Prometheus exporter metrics
- "4317" # OTLP gRPC receiver
depends_on:
- jaeger
- prometheus
prometheus:
container_name: prometheus
image: prom/prometheus:v2.54.1
restart: always
volumes:
- ./config/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
flagd:
image: ghcr.io/open-feature/flagd:v0.11.2
command:
- start
- --cors-origin
- '*'
- --sources
- '[{"uri":"etc/flagd/flags.json","provider":"file","selector":"etc/flagd/flags.json"}]'
- --metrics-exporter
- otel
- --otel-collector-uri
- otel-collector:4317
volumes:
- ./config/flagd/flags.json:/etc/flagd/flags.json
ports:
- '8013:8013'
- '8016:8016'
go-feature-flag:
image: thomaspoignant/go-feature-flag:v1.33.0
volumes:
- ./config/go-feature-flag:/goff/
ports:
- "1031:1031"
init_flipt:
image: docker.flipt.io/flipt/flipt:v1.49.2
command: ["./flipt", "import", "/var/opt/flipt/flipt.yml"]
environment:
FLIPT_LOG_LEVEL: debug
FLIPT_META_TELEMETRY_ENABLED: false
FLIPT_DB_URL: "/var/opt/flipt/flipt.db"
volumes:
- "./config/flipt/flipt.yml:/var/opt/flipt/flipt.yml"
- "flipt:/var/opt/flipt"
flipt:
image: docker.flipt.io/flipt/flipt:v1.49.2
command: ["./flipt", "--force-migrate"]
environment:
FLIPT_CORS_ENABLED: true
FLIPT_TRACING_ENABLED: true
FLIPT_TRACING_EXPORTER: otlp
FLIPT_TRACING_OTLP_ENDPOINT: "otel-collector:4317"
FLIPT_DB_URL: "/var/opt/flipt/flipt.db"
volumes:
- "./config/flipt/flipt.yml:/var/opt/flipt/flipt.yml"
- "flipt:/var/opt/flipt"
depends_on:
- init_flipt
ports:
- '8080:8080'
volumes:
flagd-flags:
flipt: