N
N
newobj2016-01-25 14:32:18
Web development
newobj, 2016-01-25 14:32:18

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

index.html contains a call to the phpinfo() function.
Problem:
when I go to localhost::8088 (or try to pull the curl from the terminal), instead of the phpinfo output, I see the standard It`s work! Apache..
Where am I stupid???
Thank you for your time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
newobj, 2016-01-29
@newobj

There was an error in the path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question