-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
68 lines (49 loc) · 1.42 KB
/
docker-compose.yaml
File metadata and controls
68 lines (49 loc) · 1.42 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
services:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: ${MIGRATIONS_DB_USER}
POSTGRES_PASSWORD: ${MIGRATIONS_DB_PASS}
POSTGRES_DB: ${MIGRATIONS_DB_NAME}
ports:
- "${API_DB_PORT:-5432}:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./scripts/docker/postgres/init:/docker-entrypoint-initdb.d
command: [ "postgres", "-c", "log_statement=all" ]
redis:
image: redis:8.2.0
restart: unless-stopped
ports:
- "${API_CACHE_PORT:-6379}:6379"
aspire-dashboard:
image: mcr.microsoft.com/dotnet/aspire-dashboard:9.1
restart: unless-stopped
environment:
DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: "true"
ports:
- "18888:18888"
- "${API_OTEL_OTLP_GRPC_PORT:-4317}:18889"
expose:
- "18889"
otel-collector:
image: otel/opentelemetry-collector-contrib:0.135.0
env_file: ".env"
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
- ./cmd/api/api.log:/var/log/myapp/api.log:ro
depends_on:
- aspire-dashboard
postgres-sqlc:
image: postgres:16
container_name: postgres-sqlc
environment:
POSTGRES_USER: ${SQLC_DB_USER}
POSTGRES_PASSWORD: ${SQLC_DB_PASS}
POSTGRES_DB: ${SQLC_DB_NAME}
ports:
- "${SQLC_DB_PORT}:5432"
command: [ "postgres", "-c", "log_statement=all" ]
volumes:
pg_data: