-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yaml
58 lines (51 loc) · 1.34 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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2021 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
version: '3'
services:
api:
container_name: '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: 'kernelci-api-db'
image: 'mongo:5.0'
command: '--wiredTigerCacheSizeGB=1.5'
ports:
- '${MONGO_HOST_PORT:-8017}:27017'
volumes:
- 'mongodata:/data/db'
redis:
container_name: 'kernelci-api-redis'
image: 'redis:6.2'
volumes:
- './docker/redis/data:/data'
storage:
container_name: 'kernelci-api-storage'
image: 'nginx:1.21.3'
volumes:
- './docker/storage/data:/usr/share/nginx/html'
- './docker/storage/config/default.conf:/etc/nginx/conf.d/default.conf'
ports:
- ${STORAGE_HOST_PORT:-8002}:80
ssh:
container_name: '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'
volumes:
mongodata: