forked from gopro/OpenGoPro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.85 KB
/
docker-compose.yml
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
# docker-compose.yml/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Sep 1, 2021 5:06:11 PM
version: '3.7'
services:
jekyll:
image: ghcr.io/gopro/opengopro:main
build:
context: .
volumes:
- ./docs:/site
ports:
- '5000:5000'
environment:
- JEKYLL_ENV=docker # Set (to anything other develop) so that jekyll serve won't overwrite site.url
# Set the default command to be run if no parameters are passed which will...
# Build, then serve, the jekyll site. Serve it from 0.0.0.0:5000 to satisfy docker. Enable incremental
# rebuilds on changes.
# Use the default config file and then also an additional config file (chosen by JEKYLL_CONFIG
# environment variable) to set the correct site.url.
command: bundle exec jekyll serve --host 0.0.0.0 --port 5000 --force_polling --incremental --config _config.yml,_config-\${JEKYLL_CONFIG}.yml
networks:
open_gopro:
# Linkchecker can't use the docker container name to access via network so we hardcode an IP
ipv4_address: 172.16.238.10
linkchecker:
image: linkchecker/linkchecker
# Only show errors (no verbose). Check all URL's. Ignore camera URL's and theme URL
# Use static IP defined in jekyll container.
command: --check-extern --ignore-url ".*10\.5\.5\.9.*" --timeout 5 -o text http://172.16.238.10:5000
networks:
open_gopro:
networks:
open_gopro:
ipam:
driver: default
config:
# A subnet must be defined in order for a container to use a static IP. There is nothing special
# about this subnet number.
- subnet: '172.16.238.0/24'