forked from kernelci/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
137 lines (129 loc) · 3.76 KB
/
docker-compose.yml
File metadata and controls
137 lines (129 loc) · 3.76 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
volumes:
backend-data:
runtime-data:
static-data:
dashboard-db-data:
networks:
public:
private:
services:
backend:
container_name: dashboard_backend_service_staging
build:
context: ./backend
volumes:
- backend-data:${BACKEND_VOLUME_DIR:-/volume_data}
env_file:
- .env
networks:
- private
- public
ports:
- 8000:8000
restart: always
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_REPOSITORY:-local}/dashboard-backend:${IMAGE_TAG:-latest}
command:
- poetry
- run
- gunicorn
- kernelCI.wsgi:application
- --workers=5
- --forwarded-allow-ips=*
- --bind=0.0.0.0:8000
- --timeout=250
entrypoint: "./utils/docker/backend_entrypoint.sh"
depends_on:
- redis
- dashboard_db
ingester:
container_name: dashboard_ingester_service_staging
build:
context: ./backend
volumes:
- backend-data:${BACKEND_VOLUME_DIR:-/volume_data} # Directory of the tree names file and other data
- ${INGESTER_SPOOL_DIR}:/app/spool # Directory for ingester to monitor
env_file:
- .env
networks:
- private
- public
environment:
# Pass down the variable from .env to inside the container
- INGESTER_METRICS_PORT=${INGESTER_METRICS_PORT:-8002}
command:
- poetry
- run
- python3
- manage.py
- monitor_submissions
- --spool-dir
- /app/spool
restart: always
depends_on:
- dashboard_db
ports:
- 8002:8002
profiles: ["with_commands"]
pending_aggregations_processor:
container_name: pending_aggregations_processor_service_staging
build:
context: ./backend
env_file:
- .env
networks:
- private
- public
environment:
- PENDING_AGGREGATIONS_METRICS_PORT=${PENDING_AGGREGATIONS_METRICS_PORT:-8003}
command:
- poetry
- run
- python3
- manage.py
- process_pending_aggregations
- --loop
- --interval
- "5"
restart: always
depends_on:
- dashboard_db
ports:
- 8003:8001
profiles: ["with_commands"]
dashboard_db:
image: postgres:17
env_file:
- .env
volumes:
- dashboard-db-data:/var/lib/postgresql/data
networks:
- private
redis:
image: redis:8.0-M04-alpine
restart: always
networks:
- private
dashboard:
build:
context: .
dockerfile: ./dashboard/Dockerfile
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_REPOSITORY:-local}/dashboard-frontend:${IMAGE_TAG:-latest}
volumes:
- static-data:/data/static
proxy:
build: ./proxy
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_REPOSITORY:-local}/dashboard-proxy:${IMAGE_TAG:-latest}
restart: always
depends_on:
- backend
- dashboard
networks:
- public
volumes:
- static-data:/data/static
- /etc/letsencrypt/live/staging.dashboard.kernelci.org/fullchain.pem:/etc/nginx/ssl/fullchain.pem
- /etc/letsencrypt/live/staging.dashboard.kernelci.org/privkey.pem:/etc/nginx/ssl/privkey.pem
ports:
- ${STAGING_EXTERNAL_HTTP_PORT:-9000}:80
env_file:
- .env