Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mjacobus committed Aug 3, 2016
1 parent 41a9899 commit ca4d9c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ services:
- MYSQL_ALLOW_EMPTY_PASSWORD="true"
web:
build: .
command: bash -c 'rake db:create && rake db:migrate && [[ "$RAILS_ENV" != "test" ]] && bundle exec rails s -p 3000 -b "0.0.0.0"'
# command: bash -c 'rake db:create && rake db:migrate && [[ "$RAILS_ENV" != "test" ]] && bundle exec rails s -p 3000 -b "0.0.0.0"'
command: bash -c 'rake db:create db:migrate && bundle exec rails s -p 3000 -b "0.0.0.0"'
volumes:
- .:/myapp
- [".:/myapp"]
ports:
- "3000:3000"
- ["3000:3000"]
depends_on:
- db
10 changes: 10 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ boot2docker ip
Or

[Docker beta](https://beta.docker.com/)

```
$ docker-compose up # create/run containers
$ docker-compose up -d # create/run containers in bg
$ docker-compose start # start exiting containers
$ docker-compose stop # stop containers
$ docker-compose rm -v # remove container
$ docker-compose ps # check containers
$ docker-compose logs # see output logs
```

0 comments on commit ca4d9c7

Please sign in to comment.