forked from kernelci/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
73 lines (69 loc) · 1.85 KB
/
docker-compose.test.yml
File metadata and controls
73 lines (69 loc) · 1.85 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
volumes:
test-backend-data:
test-db-data:
networks:
private:
services:
test_db:
image: postgres:17
environment:
POSTGRES_DB: kcidb_test
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
volumes:
- test-db-data:/var/lib/postgresql/data
- ./backend/scripts/init-test-db.sql:/docker-entrypoint-initdb.d/init-test-db.sql
networks:
- private
ports:
- "5435:5432"
redis:
image: redis:8.0-M04-alpine
restart: always
networks:
- private
ports:
- "6380:6379"
test_backend:
build:
context: ./backend
args:
INSTALL_DEV_DEPS: "true"
volumes:
- test-backend-data:/volume_data
container_name: test_backend_service
networks:
- private
ports:
- target: 8000
published: 8001
protocol: tcp
mode: host
depends_on:
- test_db
- redis
environment:
DB_NAME: kcidb_test
DB_USER: test_user
DB_PASSWORD: test_password
DB_HOST: test_db
DB_PORT: 5432
APP_DB_USER: dashboard
APP_DB: dashboard
DEBUG: true
DEBUG_SQL_QUERY: false
REDIS_HOST: redis
CACHE_TIMEOUT: 60
CORS_ALLOW_ALL_ORIGINS: true
TEST_DB_HOST: test_db
TEST_DB_PORT: 5432
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"