-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (68 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
74 lines (68 loc) · 1.71 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
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: coursehub
POSTGRES_USER: coursehub
POSTGRES_PASSWORD: coursehub
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
ports:
- "6379:6379"
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/data
api:
build:
context: .
dockerfile: src/CourseHub.Api/Dockerfile
environment:
ASPNETCORE_URLS: http://+:8080
ConnectionStrings__Postgres: Host=postgres;Port=5432;Database=coursehub;Username=coursehub;Password=coursehub
Auth__JwtSigningKey: "dev_8D4TrdgiEXewK-uOWp6CiR3utXuJu7IFotcDtDLFiew"
Auth__GoogleClientId: "CHANGE_ME"
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
S3__Endpoint: http://minio:9000
S3__AccessKey: minioadmin
S3__SecretKey: minioadmin
S3__Bucket: coursehub
S3__Region: us-east-1
ports:
- "8080:8080"
depends_on:
- postgres
- redis
- minio
web:
build:
context: ./web
dockerfile: Dockerfile
environment:
NEXT_PUBLIC_API_BASE: http://localhost:8080
NEXT_PUBLIC_GOOGLE_CLIENT_ID: "CHANGE_ME"
ports:
- "3000:3000"
depends_on:
- api
otel-collector:
image: otel/opentelemetry-collector-contrib:0.95.0
command: ["--config=/etc/otel/config.yaml"]
volumes:
- ./infra/otel-collector.yaml:/etc/otel/config.yaml:ro
ports:
- "4317:4317"
volumes:
pgdata:
miniodata: