Repository navigation
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
127 lines (117 loc) · 3.34 KB
/
Copy pathdocker-compose.development.yml
File metadata and controls
127 lines (117 loc) · 3.34 KB
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
volumes:
pg_data: {}
prom_data: {}
graf_data: {}
services:
traefik:
image: "traefik:v2.0.0-rc3"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
cache:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6380:6379"
database:
image: postgres:17.1
restart: unless-stopped
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=password"
api:
build:
context: ./OIDC.Core
dockerfile: Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- OIDCC_Database__FromEnvironment=true
- OIDCC_Database__RunMigrations=true
- OIDCC_Database__Host=database
- OIDCC_Database__Port=5432
- OIDCC_Database__User=postgres
- OIDCC_Database__Password=password
- OIDCC_Database__Name=oidc_core_minimal
- OIDCC_Otel__Enabled=true
- OIDCC_Otel__OtlpEndpoint=http://otel-collector:4317
- OIDCC_Otel__RootMeterName=OIDCCore.API
- OTEL_TRACES_EXPORTER=otlp
- OTEL_METRICS_EXPORTER=otlp
- OTEL_LOGS_EXPORTER=otlp
- OTEL_SERVICE_NAME=oidc_core_api
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- OTEL_DOTNET_AUTO_METRICS_ADDITIONAL_SOURCES=OIDCCore.API
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.oidc.core`) || Host(`oidc.core`) && PathPrefix(`/.well-known`)"
- "traefik.http.routers.api.entrypoints=web"
web:
build:
context: ./../OIDC.Core-Redux-Nuxt
dockerfile: Dockerfile
environment:
- NUXT_API_PROTOCOL=https
- NUXT_API_DOMAIN=api
labels:
- "traefik.enable=true"
- "traefik.http.routers.ui.rule=Host(`oidc.core`)"
- "traefik.http.routers.ui.entrypoints=web"
#
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-collector.yml"]
restart: unless-stopped
ports:
- "4317:4317" # HTTP receiver
- "4318:4318" # gRPC receiver
- "55679:55679" # zPages
- "1888:1888" # pProf
- "8888:8888"
- "8889:8889"
volumes:
- ./config/otel-collector.yml:/etc/otel-collector.yml
prometheus:
image: prom/prometheus:latest
command: --config.file=/etc/prometheus/prometheus.yml --no-scrape.adjust-timestamps
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prom_data:/prometheus
grafana:
image: grafana/grafana:latest
ports:
- "3500:3000"
volumes:
- graf_data:/var/lib/grafana
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.oidccore`)"
- "traefik.http.routers.grafana.entrypoints=web"
loki:
image: grafana/loki:latest
ports:
- "3100:3100"
jaeger:
image: jaegertracing/all-in-one:latest
restart: unless-stopped
environment:
- "COLLECTOR_OTLP_ENABLED=true"
ports:
- "16686:16686"
- "14268"
- "14250"
- "6381:6381/udp"