summaryrefslogtreecommitdiffstats
path: root/docker-compose.override-dev.yml
blob: c6ee3b861062f3ad589ff84d2e20e8bf1bcfe9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
##############################################################################
# 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 && bower install --allow-root && cd .. &&
                   ./manage.py migrate &&
                   ./manage.py runserver 0:8000"
        volumes:
            - ./src:/laas_dashboard
        ports:
            - "8000:8000"

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