forked from kernelci/kernelci-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-docker-compose.yaml
68 lines (61 loc) · 1.56 KB
/
test-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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2023 Collabora Limited
# Author: Jeny Sadadia <[email protected]>
version: '3'
services:
api:
container_name: 'test-kernelci-api'
image: '${KERNELCI_API_IMAGE:-kernelci/staging-kernelci}:${KERNELCI_API_TAG:-api}'
ports:
- '${API_HOST_PORT:-8001}:8000'
env_file:
- '.env'
command:
- 'uvicorn'
- 'api.main:versioned_app'
- '--host'
- '0.0.0.0'
- '--reload'
db:
container_name: 'test-kernelci-api-db'
image: 'mongo:5.0'
redis:
container_name: 'test-kernelci-api-redis'
image: 'redis:6.2'
volumes:
- './docker/redis/data:/data'
storage:
container_name: 'test-kernelci-api-storage'
image: 'nginx:1.21.3'
volumes:
- './docker/storage/data:/usr/share/nginx/html'
ports:
- ${STORAGE_HOST_PORT:-8002}:80
ssh:
container_name: 'test-kernelci-api-ssh'
build:
context: 'docker/ssh'
volumes:
- './docker/storage/data:/home/kernelci/data'
- './docker/ssh/user-data:/home/kernelci/.ssh'
ports:
- '${SSH_HOST_PORT:-8022}:22'
test:
container_name: 'kernelci-api-tests'
image: '${KERNELCI_API_IMAGE:-kernelci/staging-kernelci}:${KERNELCI_API_TAG:-api}'
volumes:
- './api:/home/kernelci/api'
- './tests:/home/kernelci/tests'
depends_on:
- api
env_file:
- '.env'
environment:
- 'KEEP_ALIVE_PERIOD=0'
command:
- 'uvicorn'
- 'api.main:versioned_app'
- '--host'
- '0.0.0.0'
- '--reload'