-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
113 lines (106 loc) · 2.82 KB
/
docker-compose.yaml
File metadata and controls
113 lines (106 loc) · 2.82 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
services:
otel:
image: grafana/otel-lgtm
restart: always
ports:
- "4317:4317" # OTLP over gRPC
- "4318:4318" # OTLP over HTTP
- "4300:3000" # Grafana
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_USER: unleash
POSTGRES_PASSWORD: unleash
POSTGRES_DB: unleash
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
quotes-db:
image: postgres:16
restart: always
environment:
POSTGRES_USER: quotes
POSTGRES_PASSWORD: quotes
POSTGRES_DB: quotes
ports:
- "5433:5432"
volumes:
- quotes-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quotes"]
interval: 5s
timeout: 5s
retries: 5
unleash:
image: unleashorg/unleash-server:7
depends_on:
- postgres
environment:
DATABASE_HOST: postgres
DATABASE_NAME: unleash
DATABASE_USERNAME: unleash
DATABASE_PASSWORD: unleash
DATABASE_SSL: false
CHECK_VERSION: false
SEND_TELEMETRY: false
UNLEASH_DEFAULT_ADMIN_USERNAME: admin
UNLEASH_DEFAULT_ADMIN_PASSWORD: unleash
INIT_ADMIN_API_TOKENS: "*:*.admin-token"
INIT_CLIENT_API_TOKENS: "default:development.client-token"
ports:
- "4242:4242"
quotes-backend:
build:
context: ./quotes-backend
dockerfile: Dockerfile
depends_on:
quotes-db:
condition: service_healthy
otel:
condition: service_started
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel:4317
OTEL_SERVICE_NAME: quotes-backend
DB_URL: jdbc:postgresql://quotes-db:5432/quotes
DB_USERNAME: quotes
DB_PASSWORD: quotes
UNLEASH_SERVER_API_URL: http://unleash:4242/api
UNLEASH_SERVER_API_TOKEN: "default:development.client-token"
UNLEASH_SERVER_API_ENVIRONMENT: development
ports:
- "8080:8080"
quotes-analytics:
build:
context: ./quotes-analytics
dockerfile: Dockerfile
depends_on:
- otel
- quotes-backend
environment:
Otel__Endpoint: http://otel:4317
QuotesBackend__Url: http://quotes-backend:8080
ports:
- "8081:8081"
quotes-frontend:
build:
context: ./quotes-frontend
dockerfile: Dockerfile
depends_on:
- otel
- quotes-backend
- quotes-analytics
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel:4318
OTEL_SERVICE_NAME: quotes-frontend
NEXT_PUBLIC_BACKEND_URL: http://quotes-backend:8080
ANALYTICS_SERVICE_URL: http://quotes-analytics:8081
UNLEASH_SERVER_API_URL: http://unleash:4242/api
UNLEASH_SERVER_API_TOKEN: "default:development.client-token"
UNLEASH_SERVER_API_ENVIRONMENT: development
ports:
- "3000:3000"
volumes:
db-data:
quotes-db-data: