Answer the question
In order to leave comments, you need to log in
Docker.How to write a volume correctly??
Good afternoon dear community.
I'm trying to master docker. I managed to create an environment from several containers (php, apache), but there was a difficulty with mounting my code inside the docker container.
What is:
Linux Ubuntu 14.04LTS, docker, docker-compose.
I create a container using docker-compose up -d.
docker-compose ps shows everything is up and running
docker-compose.yml
apache:
image: httpd:2.4
ports:
- 8088:80
volumes:
- ./index.html:/var/www/html/index.html
- ./:/var/www/html
links:
- php
php:
image:php:7.0.2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question