version: '2'

services:
    postgres:
        image: postgres:9.5
        environment:
            POSTGRES_USER: zotonic
        volumes:
            - ./data:/data
        working_dir: /data

    zotonic:
        image: driebit/zotonic:0.x-dev
        privileged: true
        links:
            - postgres
        volumes:
            - ./modules:/opt/zotonic/user/modules
            - ./sites:/opt/zotonic/user/sites
        ports:
            - 80:8000
        environment:
            MAKE: "true"

version: '2'

services:
    postgres:
        image: postgres:9.5
        environment:
            POSTGRES_USER: zotonic
        volumes:
            - ./data:/data
        working_dir: /data

    zotonic:
        image: driebit/ginger-dev:0.x
        privileged: true
        links:
            - postgres
        volumes:
            - ./modules:/opt/zotonic/user/modules
            - ./sites:/opt/zotonic/user/sites
        ports:
            - 80:8000
        environment:
            MAKE: "true"
            LOGSTASH_HOST: "localhost"
            LOGSTASH_PORT: 5514

Switch to driebit/ginger-dev Docker image
Switch to driebit/ginger-dev Docker image

* The driebit/ginger-dev image is built on Zotonic's image, so less duplication.
* Alpine-based, so smaller file size.
* Includes a Lager Logstash handler.
