Académique Documents
Professionnel Documents
Culture Documents
SIGN
UP
SEARCH T SEARCH
SIGN
IN
SIGN IN
SIGN UP
CATALOG
SERIES
SKILLS
PODCAST
DISCUSSIONS
Install Docker
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 1/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
ssh root@ipaddress
you will be prompt of that password. type the password you receive in your email
then it will ask to you to change a new password just change it to the custom root password you
want
After SSH you can check that docker command is working by typing
$root@midascode:~# docker
$root@midascode:~/laravel/laradock# curl -L
https://github.com/docker/compose/releases/download/1.8.0/run.sh > /usr/local/bin/docker-compose
$root@midascode:~/chmod +x /usr/local/bin/docker-compose
Go to Your Workspace
you can then view your laravel site at your ipaddress for example
192.168.1.1
but if you need to view on your custom domain name which you would.
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com
https://cloud.digitalocean.com/networking/domains
add your domain name and choose the server ip you provision earlier
$root@midascode:~/laravel/laradock# cd nginx
$root@midascode:~/laravel/laradock/nginx# vim laravel.conf
remove default_server
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 3/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
listen 80;
listen [::]:80 ipv6only=on;
server_name yourdomain.com;
$root@midascode:~/laravel/laradock# cd caddy
$root@midascode:~/laravel/laradock/caddy# vim Caddyfile
Remove 0.0.0.0:80
0.0.0.0:80
root /var/www/laravel/public
https://yourdomain.com
root /var/www/laravel/public
uncomment tls
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 4/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
#tls self-signed
tls midascodebreaker@gmai.com
you will be prompt here to enter your email... you may enter it or not
References :
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
https://www.digitalocean.com/products/one-click-apps/docker/
https://docs.docker.com/engine/installation/linux/ubuntulinux/
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 5/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
https://docs.docker.com/compose/install/ https://caddyserver.com/docs/automatic-https
https://caddyserver.com/docs/tls https://caddyserver.com/docs/caddy le
If you're having dif culty creating the LaraDock containers, ensure that you have
rst run # cp .env.example .env
CREATE ACCOUNT
CHOOSE A FILTER
All Threads
Solved
Unsolved
No Replies Yet
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 6/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
Leaderboard
OR PICK A CHANNEL
All
Code Review
Eloquent
Envoyer
Forge
General
Guides
JavaScript
Laravel
Lumen
Mix
Requests
Servers
Site Feedback
Spark
Testing
Tips
Vue
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 7/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
Please Guys, help me for edit this default command?? i am want add 18
some code again like a school name, or address SQLSTATE[HY000]:
General error: 1...
Expected response code 250 but got code "535", with message "535-5.7.8
GUIDES • 4 DAYS AGO BY CRONIX
01
Whats i should?? Swift_TransportException thrown with message
"Expected response code 250 but got code "535", with message &q...
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 8/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
Lots of your peers think Laracasts is one of the best things ever. So buy Jeffrey lunch
once a month, see for yourself, and massively level up your skills in the process.
LEARN
Library
Lesson Index
Books
Sign Up
Sign In
DISCUSS
Forum
Laracasts Snippet
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 9/10
7/6/2018 Guide: Set Up Laravel 5.3 with Docker + LaraDock + Let's Encrypt SSL in Digital Ocean within 5 Minutes.
Laravel Podcast
Support
EXTRAS
Statistics
Testimonials
FAQ
Youtube
Get a Job
RSS
Privacy
Terms
© Laracasts 2018. All rights reserved. Yes, all of them. That means you, Todd.
https://laracasts.com/discuss/channels/guides/guide-set-up-laravel-with-docker-laradock-in-digital-ocean-with-5-minutes 10/10