version: "3.3"
services:
    web:
        image: node:8
        environment:
            - PATH=$PATH:/home/node/web/node_modules/.bin
#        build:
#            context: .
#            dockerfile: ./Dockerfile
        command: ["bash", "/usr/bin/start-web.sh", "start"]
        volumes:
            - ./start-web.sh:/usr/bin/start-web.sh:ro
            - ${PWD}:/home/node/web
        ports:
            - 8080:8080
        expose:
            - 3000
        networks:
            - acn
        depends_on:
            - api

    api_gui:
        image: swaggerapi/swagger-ui
        ports:
            - 8090:8080
        environment:
            - SWAGGER_JSON=/acn/swagger/swagger.json
        volumes:
            - ${PWD}/mocks:/acn/swagger
        networks:
            - acn
        depends_on:
            - api
    docs:
        image: httpd:2.4
        volumes:
            - ${PWD}/docs:/usr/local/apache2/htdocs/
        ports:
            - 9000:80
        networks:
            - acn
            
