-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yml
42 lines (38 loc) · 1.06 KB
/
example.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
# Example docker compose stack for using Kafka Faker
version: "3.9"
services:
front-end:
image: benasbudrys/kafka-faker-fe
container_name: kafka-faker-fe
ports:
- 9000:3000
environment:
# Since this is an SPA/Client side, this url must be how you would reach back end from host
REACT_APP_BACK_END_URL: http://localhost:9001
back-end:
image: benasbudrys/kafka-faker-be
container_name: kafka-faker-be
ports:
- 9001:5000
environment:
BootstrapServers: my-cluster-brokers # Set this to your cluster brokers
ConnectionStrings__SchemaDatabase: Server=db;Database=kafka-faker;Uid=root;Pwd=my-secret-pw;
depends_on:
db:
condition: service_healthy
db:
image: mysql
container_name: db
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: kafka-faker
volumes:
- schema-volume:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
schema-volume: