-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.elixir.yml
56 lines (51 loc) · 1.26 KB
/
docker-compose.elixir.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "2.4"
# noinspection ComposeUnknownKeys
x-common-env: &common-env
HONEYCOMB_API_KEY:
HONEYCOMB_DATASET:
HONEYCOMB_API:
OTEL_EXPORTER_OTLP_ENDPOINT:
OTEL_EXPORTER_OTLP_HEADERS:
OTEL_RESOURCE_ATTRIBUTES: app.running-in=docker
MESSAGE_ENDPOINT: message-service:9000
NAME_ENDPOINT: name-service:8000
YEAR_ENDPOINT: year-service:6001
REDIS_URL: redis
OTEL_COLLECTOR_HOST: collector
services:
frontend-elixir:
container_name: frontend-service
build: ./elixir/frontend
image: hnyexample/frontend-elixir
environment:
<<: *common-env
OTEL_SERVICE_NAME: frontend-elixir
ports:
- 7777:7777
message-elixir:
container_name: message-service
build: ./elixir/message
image: hnyexample/message-elixir
environment:
<<: *common-env
SERVICE_NAME: message-elixir
ports:
- 9000:9000
name-elixir:
container_name: name-service
build: ./elixir/name
image: hnyexample/name-elixir
environment:
<<: *common-env
SERVICE_NAME: name-elixir
ports:
- 8000:8000
year-elixir:
container_name: year-service
build: ./elixir/year
image: hnyexample/year-elixir
environment:
<<: *common-env
SERVICE_NAME: year-elixir
ports:
- 6001:6001