aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: eee38c5fe35ded42ac8622a5296fe80abf684c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "2"
services:
    jekyllbuild:
        build:
            context: "."
            dockerfile: "jekyll.docker"
            args:
                # Set this environment variable to the value of the latest
                # Git commit hash to rebuild only the relevant parts of the
                # Jekyll image.
                # E.g. COMMIT_HASH=hash_here docker-compose up --build
                - COMMIT_HASH=${COMMIT_HASH}
        volumes_from:
            - nginx

    nginx:
        build:
            context: "."
            dockerfile: "nginx.docker"
        ports:
            - "8080:80"
        volumes:
            - /usr/share/nginx/html