Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.62 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
services:
postgres:
image: postgres:17-alpine
container_name: cloud-postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-cloud}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-cloud}
POSTGRES_DB: ${POSTGRES_DB:-cloud}
ports:
- '${POSTGRES_PORT:-5432}:5432'
volumes:
- cloud-postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-cloud} -d ${POSTGRES_DB:-cloud}']
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
container_name: cloud-redis
command: redis-server --appendonly yes
ports:
- '${REDIS_PORT:-6379}:6379'
volumes:
- cloud-redis:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 10
minio:
image: minio/minio:latest
container_name: cloud-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY_ID:-minioadmin}
MINIO_ROOT_PASSWORD: ${S3_SECRET_ACCESS_KEY:-minioadmin}
ports:
- '9000:9000'
- '9001:9001'
volumes:
- cloud-minio:/data
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/ready']
interval: 10s
timeout: 5s
retries: 10
otelcol:
image: otel/opentelemetry-collector-contrib:latest
container_name: cloud-otel
command: ['--config=/etc/otelcol/config.yaml']
volumes:
- ./infrastructure/docker/otel-collector.yaml:/etc/otelcol/config.yaml:ro
ports:
- '4318:4318'
volumes:
cloud-postgres:
cloud-redis:
cloud-minio: