Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaouadk committed Apr 25, 2016
1 parent 1d6fff4 commit 3fec1a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ docker pull shincoder/homestead:php7.0
```shell
git clone https://github.com/shincoder/homestead-docker.git
```
rename ```docker-compose.dist.yml``` to ```docker-compose.yml``` then edit the file with you own
paths and ports.

### Start your containers
There are only two containers to run. web container ( includes everything except your database ), and mariadb container.
There are only two containers to run. web container ( includes everything except your database ),
and mariadb container.
```shell
sudo docker-compose up -d
```
Expand All @@ -34,7 +37,8 @@ ssh -p 2222 homestead@localhost
```

### Add a virtual host
Assuming you mapped your apps folder to ```/apps``` (you can change mappings in the docker-compose.yml file, it's prefered to use absolute paths), you can do:
Assuming you mapped your apps folder to ```/apps``` (you can change mappings in the docker-compose.yml file,
it's prefered to use absolute paths), you can do:
```shell
cd / && ./serve.sh myapp.dev /apps/myapp/public
```
Expand All @@ -45,7 +49,8 @@ In the host, update ``` /etc/hosts ``` to include your app domain:

### That's it
Our web container starts nginx, php-fpm, redis, beanstalk. and has gruntjs, gulp, bower...etc
some relevant ports have been added to docker-compose.yml ( livereload standard port, karma server port ), change them if you need to.
some relevant ports have been added to docker-compose.yml ( livereload standard port, karma server port ),
change them if you need to.

### Notes
- Use docker's local IP address to connect to your database. Run `docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}`, where `${CID}` is docker container ID of the database
Expand Down

0 comments on commit 3fec1a5

Please sign in to comment.