Answers for "share volume between containers docker-compose"

1

share volume between containers docker-compose

services:
    nginx:
        build: ./nginx/
        ports:
            - 80:80
        links:
            - php
        volumes:
            - app-volume:location_in_the_container

    php:
        build: ./php/
        expose:
            - 9000
        volumes:
            - app-volume:location_in_the_container

volumes:
     app-volume:
Posted by: Guest on August-17-2020

Code answers related to "share volume between containers docker-compose"

Browse Popular Code Answers by Language