
version: '2'
services:
    database:
        image: mariadb:latest
        environment:
            - MYSQL_ROOT_PASSWORD=root
            - MYSQL_DATABASE=wicm
            - MYSQL_USER=wicm 
            - MYSQL_PASSWORD=wicm
        restart: always
        expose: 
            - 3306
    opendaylight:
        build:
            dockerfile: ./odl.dockerfile
        restart: always
        ports:
            - 8080:8080
            - 6633:6633
            - 6653:6653
            - 6640:6640
            - 8181:8181
    wicm:
        build:
            dockerfile: ./wicm.dockerfile
        restart: always
        ports :
            - 5000:12891
        links:
            - opendaylight
            - database



version: '2'
services:
    database:
        image: mariadb:latest
        environment:
            - MYSQL_ROOT_PASSWORD=root
            - MYSQL_DATABASE=wicm
            - MYSQL_USER=wicm 
            - MYSQL_PASSWORD=wicm
        restart: always
        expose: 
            - 3306
    opendaylight:
        build:
            context: ./
            dockerfile: ./odl.dockerfile
        restart: always
        ports:
            - 8080:8080
            - 6633:6633
            - 6653:6653
            - 6640:6640
            - 8181:8181
    wicm:
        build:
            context: ./
            dockerfile: ./wicm.dockerfile
        restart: always
        ports :
            - 5000:12891
        links:
            - opendaylight
            - database


Add context to compose file.
Add context to compose file.
