Public Repository

Last pushed: 2 years ago
Short Description
Wander API
Full Description

Start MySQL container

docker run --name mysqldb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=<secretpassword> -d mysql

Start Rails container

docker run --name wanderapi -p 3000:3000 --env-file ./env.list -v "$(pwd)":/usr/src/app -it --rm qazs/wander-api rails server

Start as daemon

docker run --name wanderapi -p 3000:3000 --env-file ./env.list -v "$(pwd)":/usr/src/app -d qazs/wander-api rails server

Run server

> rake db:create
> rake db:migrate 
> rails server

Reset DB

docker run -v "$(pwd)":/usr/src/app -it --rm qazs/wander-api rake db:reset

To access docker containers, install nsenter plugin for vagrant:
https://github.com/smerrill/vagrant-docker-nsenter

Docker Pull Command
Owner
qazs