Skip to content

Instantly share code, notes, and snippets.

@HariantoAtWork
Created December 3, 2019 13:48
Show Gist options
  • Save HariantoAtWork/2226b776a2937c9286976eeedbe4734e to your computer and use it in GitHub Desktop.
Save HariantoAtWork/2226b776a2937c9286976eeedbe4734e to your computer and use it in GitHub Desktop.
Docker api-sylo-space jsonplaceholder
docker rm -f api-sylo-space
docker pull harianto/api-sylo-space
docker run -v /tmp:/tmp -v /var/www/node_vhosts/api.sylo.space/api:/home/node/app/src/data --restart always --name api-sylo-space -e GID='33' -e UID='33' -dit harianto/api-sylo-space
rm /tmp/api-sylo-space.sock; touch /tmp/api-sylo-space.sock; chmod 777 /tmp/api-sylo-space.sock && chown www-data:www-data /tmp/api-sylo-space.sock
sleep 5
chmod 777 /tmp/api-sylo-space.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment