docker-compose.yml 1.03 KB
version: '2'

services:
        build:
                image: docker.brainfood.com/nginx-pagespeed
                build:
                        context: .
                        args:
                                - http_proxy
                                - https_proxy
        compile:
                build:
                        context: compile/nginx-pagespeed
                        args:
                                - http_proxy
                                - https_proxy
                volumes:
                        - .:/tmp/nginx-pagespeed
                command: ["cp", "-av", "/tmp/build-output/nginx.tar.gz", "/tmp/nginx-pagespeed/nginx.tar.gz"]

        download:
                image: docker.brainfood.com/debian-support
                environment:
                        - http_proxy
                        - https_proxy
                volumes:
                        - ./compile/nginx-pagespeed/:/tmp/nginx-pagespeed/
                command: ["/tmp/nginx-pagespeed/download-files", "/tmp/nginx-pagespeed"]