I'm trying to configure a simple LAMP app.
Here is my Dockerfile
FROM ubuntu
# ...
RUN apt-get update
RUN apt-get -yq install apache2
# ...
WORKDIR /data
And my docker-compose.yml
db:
image: mysql
web:
build: .
ports:
- 80:80
volumes:
- .:/data
links:
- db
command: /data/run.sh
After docker-compose build
& up
I was expecting to find db
added to my /etc/hosts
(into the web
container), but it's not there.
How can this be explained ? What am I doing wrong ?
Note1: At up
time, I see only Attaching to myapp_web_1
, shouldn't I see also myapp_db_1
?
Note2: I'm using boot2docker