Sign inSign up

turfdev/laravel

By turfdev

Updated over 3 years ago

Image
0

112

turfdev/laravel repository overview

Container image for Laravel

The environment variables:

  1. DOMAIN It's your domain name and will be used in making virtual host

Laravel's ".env" file environment variables

  1. APP_URL The full URL of your application
  2. DB_CONNECTION Default is "mysql"
  3. DB_HOST Your database host or the database container name or service name
  4. DB_PORT Defualt port for mysql is "3306"
  5. DB_DATABASE The database name for laravel
  6. DB_USERNAME The database username
  7. DB_PASSWORD Password for the database user
  8. MEMCACHED_HOST Memcached container name or service name
  9. REDIS_HOST Redis container name or service name
  10. REDIS_PASSWORD Redis password, default is "null"
  11. REDIS_PORT Redis server port
How to create the Laravel container:

sudo docker run -it -p 80:80 -e DOMAIN=domain.com -e APP_URL="http://domain.com" -e DB_HOST=laravel_dbhost -e DB_DATABASE=laravel -e DB_USERNAME=laravel -e DB_PASSWORD='secret' -d turfdev/laravel:latest

Tag summary

Content type

Image

Digest

sha256:55bae2af2

Size

148.6 MB

Last updated

over 3 years ago

docker pull turfdev/laravel