Skip to content

Commit 9a569d6

Browse files
nuclearcatJenySadadia
authored andcommitted
docker-compose.yaml: Update API to use docker image
Instead of doing local build - use docker image from registry. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent b9cbf40 commit 9a569d6

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

docker-compose.yaml

+7-10
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,17 @@ services:
88

99
api:
1010
container_name: 'kernelci-api'
11-
build:
12-
context: 'docker/api'
13-
args:
14-
- REQUIREMENTS=${REQUIREMENTS:-requirements.txt}
15-
- core_rev=${CORE_REV:-main}
16-
volumes:
17-
- './api:/home/kernelci/api'
18-
- './tests:/home/kernelci/tests'
19-
- './migrations:/home/kernelci/migrations'
20-
- './templates:/home/kernelci/templates'
11+
image: ${KERNELCI_API_IMAGE:-kernelci/staging-api}:${KERNELCI_API_TAG:-latest}
2112
ports:
2213
- '${API_HOST_PORT:-8001}:8000'
2314
env_file:
2415
- '.env'
16+
command:
17+
- 'uvicorn'
18+
- 'api.main:versioned_app'
19+
- '--host'
20+
- '0.0.0.0'
21+
- '--reload'
2522

2623
db:
2724
container_name: 'kernelci-api-db'

0 commit comments

Comments
 (0)