Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Last active January 11, 2017 15:34
Show Gist options
  • Save bonyiii/cd496cf641bdc740d86cfe889e13f578 to your computer and use it in GitHub Desktop.
Save bonyiii/cd496cf641bdc740d86cfe889e13f578 to your computer and use it in GitHub Desktop.
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