Skip to content

Instantly share code, notes, and snippets.

@bonyiii bonyiii/start_rails_api.sh
Last active Jan 11, 2017

Embed
What would you like to do?
Start Rails Application
docker run -it \
--name sapi \
-p 3000:3000 \
--security-opt seccomp:chrome.seccomp.json \
-e DISPLAY=unix$DISPLAY \
-v /home/boni/public_html/app/my-api/gems:/usr/local/bundle \
-v /home/boni/public_html/app/my-api:/var/www/my-api \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME/Downloads:/home/dev/Downloads \
-v $HOME/.config/google-chrome/:/home/dev/data \
-v /dev/snd:/dev/snd --privileged \
-v /dev/shm:/dev/shm \
--group-add audio \
--group-add video \
--link my-mysql:mysql \
--link my-ldap:ldap \
-e RAILS_ENV=development \
-e LDAP_PORT=1389 \
--add-host=redis:172.17.0.1 my-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.