-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (76 loc) · 1.91 KB
/
docker-compose.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
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
volumes:
rabbitmq_data: {}
postgres_data: {}
services:
# Main App
tacoq:
build:
context: .
dockerfile: server/services/manager/Dockerfile
ports:
- "3000:3000"
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
env_file:
- server/services/manager/.env.docker
# Queue
rabbitmq:
image: rabbitmq:4-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 5s
timeout: 5s
retries: 5
# Storage
postgres:
image: postgres:latest
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: tacoq
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d tacoq"]
interval: 5s
timeout: 5s
retries: 5
# Observability
tempo:
image: grafana/tempo:latest
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- type: bind
source: ./config/tempo.yaml
target: /etc/tempo.yaml
read_only: true
ports:
- "3200" # Collection
- "4317:4317" # OTLP gRPC - We keep these ports open so that we can run the app outside the container
- "4318:4318" # OTLP HTTP
grafana:
image: grafana/grafana:latest
volumes:
- type: bind
source: ./config/grafana-datasources.yaml
target: /etc/grafana/provisioning/datasources/datasources.yaml
read_only: true
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3001:3000" # Grafana UI