docker-compose.yml-sample 941 Bytes
Newer Older
1
version: "3"
2 3 4

services:
    redis:
5 6 7 8 9 10
        image: redis:4-alpine
        restart:
            unless-stopped
        networks:
            default:
                aliases:
Dave Lane's avatar
Dave Lane committed
11
                    - redis.[grav.local]
12 13
    app:
        image: kiwilightweight/grav
14 15
        links:
            - redis
16
        volumes:
Dave Lane's avatar
Dave Lane committed
17
            - [path-to-my-grav-data]:/var/www/html
18 19
        restart:
            unless-stopped
20
        networks:
21 22
            default:
                aliases:
Dave Lane's avatar
Dave Lane committed
23
                    - [grav.local]
24 25 26 27 28 29
    nginx:
        image: oeru/nginx-jessie
        links:
            - app
            - redis
        ports:
30
            - "127.0.0.1:8081:80"
31 32 33
        volumes:
            - ./nginx:/etc/nginx/conf.d
            - ./nginx/cache:/var/cache/nginx
Dave Lane's avatar
Dave Lane committed
34
            - [path-to-my-grav-data]:/var/www/html
35
        restart: unless-stopped
36 37 38
        networks:
            default:
                aliases:
Dave Lane's avatar
Dave Lane committed
39
                    - nginx.[grav.local]