forked from kernelci/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-next.yml
More file actions
134 lines (125 loc) · 4.27 KB
/
docker-compose-next.yml
File metadata and controls
134 lines (125 loc) · 4.27 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
# docker-compose-next.yml — Pre-built images, single .env file
# Usage:
# Production (external DB): docker compose -f docker-compose-next.yml up -d
# Staging (local DB): docker compose -f docker-compose-next.yml --profile=local-db up -d
# With ingester/aggregation: docker compose -f docker-compose-next.yml --profile=with_commands up -d
# All services: docker compose -f docker-compose-next.yml --profile=local-db --profile=with_commands up -d
# See DEPLOYMENT.md for full instructions.
volumes:
backend-data:
static-data:
dashboard-db-data:
networks:
public:
private:
services:
dashboard_db:
image: postgres:17
environment:
POSTGRES_USER: ${DB_USER:-admin}
POSTGRES_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD must be set in .env}
POSTGRES_DB: ${DB_NAME:-dashboard}
volumes:
- dashboard-db-data:/var/lib/postgresql/data
networks:
- private
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-admin}"]
interval: 5s
timeout: 5s
retries: 5
profiles: ["local-db"]
redis:
image: redis:8.0-M04-alpine
restart: always
networks:
- private
backend:
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_OWNER:-kernelci}/${IMAGE_REPOSITORY:-dashboard}/dashboard-backend:${IMAGE_TAG:-latest}
entrypoint: "./utils/docker/backend_entrypoint.sh"
command:
- poetry
- run
- gunicorn
- kernelCI.wsgi:application
- --workers=5
- --forwarded-allow-ips=*
- --bind=0.0.0.0:8000
- --timeout=250
env_file: .env
volumes:
- backend-data:${BACKEND_VOLUME_DIR:-/volume_data}
restart: always
networks:
- private
- public
ports:
- ${EXTERNAL_PROM_METRICS_PORT:-2001}:${PROM_METRICS_PORT:-8002}
depends_on:
- redis
dashboard:
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_OWNER:-kernelci}/${IMAGE_REPOSITORY:-dashboard}/dashboard-frontend:${IMAGE_TAG:-latest}
volumes:
- static-data:/data/static
proxy:
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_OWNER:-kernelci}/${IMAGE_REPOSITORY:-dashboard}/dashboard-proxy:${IMAGE_TAG:-latest}
restart: always
depends_on:
- backend
- dashboard
networks:
- public
volumes:
- static-data:/data/static
- ${SSL_CHAIN_FILE:-/etc/letsencrypt/live/d.kernelci.org/fullchain.pem}:/etc/nginx/ssl/fullchain.pem
- ${SSL_KEY_FILE:-/etc/letsencrypt/live/d.kernelci.org/privkey.pem}:/etc/nginx/ssl/privkey.pem
ports:
- ${EXTERNAL_HTTP_PORT:-80}:80
- ${EXTERNAL_HTTPS_PORT:-443}:443
env_file: .env
environment:
PROXY_TARGET: ${PROXY_TARGET:-http://backend:8000}
ingester:
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_OWNER:-kernelci}/${IMAGE_REPOSITORY:-dashboard}/dashboard-backend:${IMAGE_TAG:-latest}
command:
- poetry
- run
- python3
- manage.py
- monitor_submissions
- --spool-dir
- /app/spool
env_file: .env
environment:
SKIP_CRONJOBS: "True"
volumes:
- backend-data:${BACKEND_VOLUME_DIR:-/volume_data}
- ${INGESTER_SPOOL_DIR:-../spool}:/app/spool
restart: always
networks:
- private
- public
depends_on:
- redis
profiles: ["with_commands"]
pending_aggregations_processor:
image: ${IMAGE_REGISTRY:-ghcr.io}/${IMAGE_OWNER:-kernelci}/${IMAGE_REPOSITORY:-dashboard}/dashboard-backend:${IMAGE_TAG:-latest}
command:
- poetry
- run
- python3
- manage.py
- process_pending_aggregations
- --loop
- --interval
- "5"
env_file: .env
environment:
SKIP_CRONJOBS: "True"
restart: always
networks:
- private
- public
depends_on:
- redis
profiles: ["with_commands"]