-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 946 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 946 Bytes
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
version: "3.8"
services:
# Admin Service (no dedicated database - uses other services via APIs)
admin-service:
build:
context: .
dockerfile: Dockerfile
container_name: admin-service
restart: unless-stopped
ports:
- "1011:1011"
environment:
- NODE_ENV=production
- PORT=1011
- RABBITMQ_URL=amqp://admin:admin123@rabbitmq-message-broker:5672
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
# SERVICE_BASE_URL not needed in compose — resolver uses port registry for container names
networks:
- xshopai-network
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:1011/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
xshopai-network:
external: true