-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
157 lines (151 loc) · 4.5 KB
/
compose.yaml
File metadata and controls
157 lines (151 loc) · 4.5 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
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
x-default-logging: &logging
driver: json-file
options:
# compress:
# env:
# env-regex:
# label:
# labels-regex:
max-file: 2
max-size: 5m
services:
elasticsearch:
container_name: effect-app-monorepo-elasticsearch
environment:
- ES_JAVA_OPTS=-Xms1g -Xmx1g
# - cluster.name=docker-cluster
- discovery.type=single-node
# - logger.discovery.name = org.elasticsearch.discovery
# - logger.discovery.level = trace
- network.host=0.0.0.0
- xpack.security.enabled=false
expose:
- 9200 # API Call
- 9300 # Custom Binary Protocol
healthcheck:
interval: 30s
retries: 3
start_period: 10s
test:
- CMD-SHELL
- curl --fail http://elasticsearch:9200/_cluster/health?timeout=50s&wait_for_status=green || exit 1
timeout: 10s
image: elasticsearch:9.1.1
labels:
namespace: service
logging: *logging
ports:
- "9200:9200"
- "9300:9300"
restart: "no"
otel-lgtm:
container_name: effect-app-monorepo-otel-lgtm
environment:
- ENABLE_LOGS_ALL=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_FEATURE_TOGGLES_ENABLE=flameGraph traceqlSearch correlations traceQLStreaming metricsSummary traceqlEditor traceToMetrics traceToProfiles datatrails
- GF_INSTALL_PLUGINS=grafana-exploretraces-app,grafana-llm-app,grafana-lokiexplore-app,grafana-pyroscope-app
expose:
- 3000 # Panel
- 4040 # Pyroscope
- 4317 # OTLP gRPC
- 4318 # OTLP http
healthcheck:
interval: 30s
retries: 3
start_period: 10s
test:
- CMD-SHELL
- curl --fail http://otel-lgtm:3000 || exit 1
timeout: 10s
image: grafana/otel-lgtm:0.11.6
ports:
- "3000:3000"
- "4040:4040"
- "4317:4317"
- "4318:4318"
labels:
namespace: service
logging: *logging
restart: "no"
volumes:
- ./.docker/otel-lgtm/grafana/conf/provisioning:/otel-lgtm/grafana/conf/provisioning:ro
- ./.docker/otel-lgtm/loki-config.yaml:/otel-lgtm/loki-config.yaml:ro
- ./.docker/otel-lgtm/otelcol-config.yaml:/otel-lgtm/otelcol-config.yaml:ro
- ./.docker/otel-lgtm/prometheus.yaml:/otel-lgtm/prometheus.yaml:ro
- ./.docker/otel-lgtm/pyroscope-config.yaml:/otel-lgtm/pyroscope-config.yaml:ro
- ./.docker/otel-lgtm/tempo-config.yaml:/otel-lgtm/tempo-config.yaml:ro
- otel-lgtm:/data
redis:
# command:
# - /usr/local/etc/redis/redis.conf
container_name: effect-app-monorepo-redis
expose:
- 6379 # Default Protocol
healthcheck:
interval: 30s
retries: 3
start_period: 10s
test:
- CMD-SHELL
- redis-cli --raw incr ping
timeout: 10s
image: redis:8.2.0-bookworm
labels:
namespace: service
logging: *logging
ports:
- "6379:6379"
restart: "no"
volumes:
- ./.docker/redis/redis.conf:/usr/local/etc/redis/redis.conf:ro
- redis:/data
server:
build:
context: ./
dockerfile: ./Dockerfile
target: server
container_name: effect-app-monorepo-server
depends_on:
redis:
condition: service_healthy
otel-lgtm:
condition: service_healthy
environment:
- BETTER_AUTH_SECRET=better-auth-secret-123456789-00000000-0000-0000-0000-000000000000
- BETTER_AUTH_URL=http://127.0.0.1:3001
- RESEND_API_KEY=-re_xxxxxxxxx
- RESEND_FROM_EMAIL=smhmayboudi@gmail.com
- SERVER_ELASTICSEARCH_NODE=http://elasticsearch:9200
- SERVER_REDIS_HOST=redis
- SERVER_REDIS_PORT=6379
- SERVER_SQLITE_FILENAME=./db-server.sqlite
- SERVER_WORKFLOW_SHARD_MANAGER_ADDRESS_HOST=127.0.0.1
- SERVER_WORKFLOW_SHARD_MANAGER_ADDRESS_PORT=8080
- SERVER_WORKFLOW_SQLITE_FILENAME=./db-workflow.sqlite
- SERVER_GROUP_CACHE_TTL_MS=30000
- SERVER_PERSON_CACHE_TTL_MS=30000
- SERVER_SERVICE_CACHE_TTL_MS=30000
- SERVER_TODO_CACHE_TTL_MS=30000
expose:
- 3001
healthcheck:
interval: 30s
retries: 3
start_period: 10s
test:
- CMD-SHELL
- wget --no-verbose --spider --tries=1 http://server:3001/api/v1/healthz
timeout: 10s
labels:
namespace: server
logging: *logging
ports:
- "3001:3001"
restart: "no"
volumes:
# elasticsearch: {}
otel-lgtm: {}
redis: {}