version: '2'
services:
    mongodb:
        image: autopilotpattern/mongodb:latest
        command: containerpilot mongod --replSet=pilot
        restart: always
        mem_limit: 512m
        build: .
        env_file: _env
        environment:
            - CONTAINERPILOT=file:///etc/containerpilot.json
            - CONSUL=consul
        ports:
            - 27017

    consul:
        image: consul:v0.6.4
        command: agent -dev -ui -client=0.0.0.0
        restart: always
        mem_limit: 128m
        ports:
            - 8500:8500
        expose:
            - 53
            - 8300
            - 8301
            - 8302
            - 8400
            - 8500


version: '2'
services:
    mongodb:
        image: autopilotpattern/mongodb:latest
        command: containerpilot mongod --replSet=pilot
        restart: always
        mem_limit: 512m
        build: .
        env_file: _env
        environment:
            - CONSUL=consul
        ports:
            - 27017

    consul:
        image: consul:v0.6.4
        command: agent -dev -ui -client=0.0.0.0
        restart: always
        mem_limit: 128m
        ports:
            - 8500:8500
        expose:
            - 53
            - 8300
            - 8301
            - 8302
            - 8400
            - 8500


Remove superfluous env in compose yml
Remove superfluous env in compose yml
