-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplication.yaml
More file actions
44 lines (40 loc) · 1008 Bytes
/
application.yaml
File metadata and controls
44 lines (40 loc) · 1008 Bytes
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
version: "3.8"
services:
app-db-migration:
build:
context: ../
dockerfile: Dockerfile
entrypoint: [ "sh", "-c" ]
command: "/flyway/run-migration.sh"
environment:
DATABASE_URL: jdbc:mysql://database/sampledb
DATABASE_USER: root
DATABASE_PASSWORD: rpassword
networks:
- database-net
app:
build:
context: ../
dockerfile: Dockerfile
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
DATABASE_URL: jdbc:mysql://database/sampledb
DATABASE_USER: root
DATABASE_PASSWORD: rpassword
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: http://otel-collector:4318/v1/metrics
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4318/v1/traces
ports:
- "8080:8080"
depends_on:
- app-db-migration
networks:
- database-net
- kafka-net
- observability-net
networks:
database-net:
driver: bridge
kafka-net:
driver: bridge
observability-net:
driver: bridge