---
##############################################################################
# Copyright (c) 2018 Trevor Bramwell and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
version: '3'
services:
    nginx:
        command: echo "Nginx is disabled in dev mode."
        restart: "no"

    web:
        image: opnfv/laas-dashboard:dev
        build:
            context: .
            dockerfile: web/Dockerfile
        command: >
            sh -c "cd static && npm install && cd .. &&
                   ./manage.py runserver 0:8000"
        volumes:
            - ./src:/laas_dashboard
        ports:
            - "8000:8000"

    worker:
        image: opnfv/laas-celery:dev
        build:
            context: .
            dockerfile: worker/Dockerfile