-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
159 lines (145 loc) · 3.77 KB
/
docker-compose.yml
File metadata and controls
159 lines (145 loc) · 3.77 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
158
159
services:
proxy:
container_name: bidaro-proxy
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
- database-ui
- redis-ui
- mailhog
- minio
- grafana
- prometheus
networks:
- bidaro-network
app:
container_name: bidaro-app-dev
user: 1000:1000
build:
context: .
dockerfile: ../bidaro/Dockerfile
target: dev
command: ["sh", "-c", "bun run dev || tail -f /dev/null"]
volumes:
- ../bidaro:/usr/src/app
networks:
- bidaro-network
database:
container_name: bidaro-database
image: postgres:latest
volumes:
- bidaro-db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${PG_DB}
POSTGRES_USER: ${PG_USER}
POSTGRES_PASSWORD: ${PG_PASSWORD}
ports:
- "${PG_PORT}:5432"
networks:
- bidaro-network
minio:
container_name: bidaro-minio
image: bitnamilegacy/minio:2025.4.22-debian-12-r1
volumes:
- bidaro-minio-data:/data
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
MINIO_DEFAULT_BUCKETS: ${MINIO_DEFAULT_BUCKETS}
ports:
- "${MINIO_API_PORT}:9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- bidaro-network
redis:
container_name: bidaro-redis
image: redis:latest
volumes:
- bidaro-redis-data:/root/redis
environment:
ALLOW_EMPTY_PASSWORD: yes
REDIS_DISABLE_COMMANDS: FLUSHDB,FLUSHALL
ports:
- "${REDIS_PORT}:6379"
networks:
- bidaro-network
mailhog:
container_name: bidaro-mailhog
image: mailhog/mailhog:latest
ports:
- "${MAILHOG_PORT}:1025"
networks:
- bidaro-network
redis-ui:
container_name: bidaro-redis-ui
image: rediscommander/redis-commander:latest
hostname: redis-commander
environment:
REDIS_HOSTS: local:redis:6379
networks:
- bidaro-network
database-ui:
container_name: bidaro-database-ui
image: adminer:latest
environment:
ADMINER_DEFAULT_SERVER: database
networks:
- bidaro-network
otel-collector:
container_name: bidaro-otel-collector
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-config.yaml"]
volumes:
- ./config/otel-collector.yaml:/etc/otel-config.yaml
networks:
- bidaro-network
prometheus:
container_name: bidaro-prometheus
image: prom/prometheus:latest
command: [ "--config.file=/etc/prometheus/prometheus.yml" ]
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- bidaro-network
tempo:
container_name: bidaro-tempo
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./config/tempo.yaml:/etc/tempo.yaml
networks:
- bidaro-network
loki:
container_name: bidaro-loki
image: grafana/loki:latest
command: -config.file=/etc/loki/local-config.yaml
networks:
- bidaro-network
grafana:
container_name: bidaro-grafana
image: grafana/grafana:latest
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
- ./config/grafana/dashboards:/var/lib/grafana/dashboards
- ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
networks:
- bidaro-network
networks:
bidaro-network:
name: bidaro-network
driver: bridge
volumes:
bidaro-db-data:
bidaro-redis-data:
bidaro-minio-data: