forked from kernelci/kernelci-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
33 lines (32 loc) · 921 Bytes
/
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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2022-2024 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
# Author: Denys Fedoryshchenko <[email protected]>
#
# Description: builds and runs the hugo server with kernelci.org website
# in a docker container, viewable at http://localhost:1313
#
# Note:
# 1)retrieve all submodules with `git submodule update --init --recursive`
# 2)retrieve all lfs files with `git lfs pull`
# you might need to install git-lfs with `sudo apt install git-lfs`
# 3)run `docker-compose up` to start the server
version: '3'
services:
localhugo:
container_name: 'localhugo'
image: 'hubci/hugo:0.97.3'
volumes:
- '.:/src'
ports:
- '1313:1313'
# chdir to the source directory
working_dir: '/src'
user: '0:0'
command:
- 'hugo'
- 'server'
- '-D'
- '-F'
- '--bind=0.0.0.0'