aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.override-dev.yml
blob: 4d4256980f5ca0a73bab716cf6c9e0c258cbda78 (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
---
##############################################################################
# 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