-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
104 lines (93 loc) · 2.92 KB
/
docker-compose.yaml
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
version: "3.9"
services:
postgres:
platform: linux/amd64
image: postgres:16
container_name: ctrlplane-postgres
environment:
POSTGRES_USER: ctrlplane
POSTGRES_PASSWORD: ctrlplane
POSTGRES_DB: ctrlplane
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
platform: linux/amd64
image: redis:7
container_name: ctrlplane-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
migrations:
platform: linux/amd64
image: ctrlplane/migrations:75685e0
container_name: ctrlplane-migrations
restart: "no"
environment:
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane"
depends_on:
- postgres
webservice:
# platform: linux/amd64
# image: ctrlplane/webservice:75685e0
build:
context: .
dockerfile: ./apps/webservice/Dockerfile
container_name: ctrlplane-webservice
environment:
BASE_URL: "http://127.0.0.1" # <set your instance url>
AUTH_SECRET: ${AUTH_SECRET}
# AUTH_OIDC_ISSUER: ${AUTH_OIDC_ISSUER}
# AUTH_OIDC_CLIENT_ID: ${AUTH_OIDC_CLIENT_ID}
# AUTH_OIDC_CLIENT_SECRET: ${AUTH_OIDC_CLIENT_SECRET}
AUTH_GOOGLE_CLIENT_ID: ${AUTH_GOOGLE_CLIENT_ID}
AUTH_GOOGLE_CLIENT_SECRET: ${AUTH_GOOGLE_CLIENT_SECRET}
NEXTAUTH_URL: ${BASE_URL}
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4318"
REDIS_URL: redis://redis:6379
POSTGRES_URL: postgresql://ctrlplane:ctrlplane@postgres:5432/ctrlplane
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9
depends_on:
- postgres
- migrations
ports:
- "3000:3000"
jobs:
platform: linux/amd64
image: ctrlplane/jobs:75685e0
container_name: ctrlplane-jobs
environment:
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane"
REDIS_URL: "redis://redis:6379"
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9
depends_on:
- postgres
event-worker:
platform: linux/amd64
image: ctrlplane/event-worker:75685e0
container_name: ctrlplane-event-worker
environment:
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane"
REDIS_URL: "redis://redis:6379"
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9
depends_on:
- postgres
- redis
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
container_name: ctrlplane-otel-collector
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "8125:8125" # StatsD
- "8888:8888" # Telemetry
- "9109:9109" # Prometheus endpoint
volumes:
postgres_data:
redis_data: