-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
101 lines (95 loc) · 2.98 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
x-logging: &default-logging
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
loki-pipeline-stages: |
- multiline:
firstline: '^\d{4}-\d{2}-\d{2} \d{1,2}:\d{2}:\d{2}'
max_wait_time: 3s
- regex:
expression: '^(?P<time>\d{4}-\d{2}-\d{2} \d{1,2}:\d{2}:\d{2},d{3}) (?P<message>(?s:.*))$$'
version: "3.4"
services:
loki: # nosemgrep
image: grafana/loki:2.9.3
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
user: "$UID:$GID"
volumes:
- ./loki_data:/loki
fastapi-app: # nosemgrep
# build: ./fastapi_app/
image: ghcr.io/${GITHUB_REPOSITORY}:${TAG}
container_name: ${container_name}
ports:
- "${PORT}:${PORT}"
- "8080:8080"
depends_on:
- loki
environment:
- PORT=${PORT}
- DATABASE_URL=${DATABASE_URL}
- CLIENT_SECRET=${CLIENT_SECRET}
- DEVELOPER_TOKEN=${DEVELOPER_TOKEN}
- AZURE_API_VERSION=${AZURE_API_VERSION}
- AZURE_API_ENDPOINT=${AZURE_API_ENDPOINT}
- AZURE_API_ENDPOINT_GPT4O=${AZURE_API_ENDPOINT_GPT4O}
- AZURE_GPT4_MODEL=${AZURE_GPT4_MODEL}
- AZURE_GPT4O_MODEL=${AZURE_GPT4O_MODEL}
- AZURE_GPT35_MODEL=${AZURE_GPT35_MODEL}
- AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}
- AZURE_OPENAI_API_KEY_GPT4O=${AZURE_OPENAI_API_KEY_GPT4O}
- INFOBIP_BASE_URL=${INFOBIP_BASE_URL}
- INFOBIP_API_KEY=${INFOBIP_API_KEY}
- REACT_APP_API_URL=${REACT_APP_API_URL}
- REDIRECT_DOMAIN=${REDIRECT_DOMAIN}
- DOMAIN=${DOMAIN}
- GOOGLE_SHEETS_OPENAPI_URL=${GOOGLE_SHEETS_OPENAPI_URL}
logging: *default-logging
prometheus: # nosemgrep
image: prom/prometheus:v2.48.1
container_name: prometheus
ports:
- "9091:9090"
user: "$UID:$GID"
volumes:
- ./etc/prometheus:/workspace
- ./prometheus_data:/prometheus
command:
- --config.file=/workspace/prometheus.yml
- --enable-feature=exemplar-storage
- --storage.tsdb.retention.size=1GB
depends_on:
- loki
logging: *default-logging
tempo: # nosemgrep
image: grafana/tempo:2.3.1
container_name: tempo
command: [ "--target=all", "--storage.trace.backend=local", "--storage.trace.local.path=/var/tempo", "--auth.enabled=false" ]
ports:
- "4317:4317"
- "4318:4318"
# user: "$UID:$GID"
# volumes:
# - ./tempo_data:/var/tempo
depends_on:
- loki
logging: *default-logging
grafana: # nosemgrep
image: grafana/grafana:10.2.3
container_name: grafana
ports:
- "3000:3000"
user: "$UID:$GID"
volumes:
- ./etc/grafana/:/etc/grafana/provisioning/datasources
- ./etc/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./etc/dashboards:/etc/grafana/dashboards
- ./etc/grafana.ini:/etc/grafana/grafana.ini
- ./grafana_data:/var/lib/grafana
depends_on:
- loki
- prometheus
logging: *default-logging