Skip to content

Instantly share code, notes, and snippets.

@b4oshany
Last active November 16, 2020 12:51
Show Gist options
  • Save b4oshany/5f7397f5364f1b6b44a0eae697e861e7 to your computer and use it in GitHub Desktop.
Save b4oshany/5f7397f5364f1b6b44a0eae697e861e7 to your computer and use it in GitHub Desktop.
Laravel .docker.env
APP_NAME="Task App"
APP_ENV=${APP_ENV}
APP_KEY=base64:+m0h+ObGNu26eF4MVCgqX1ua0IukSUn7lRYInflNt8A=
APP_DEBUG=${APP_DEBUG}
APP_URL=${APP_URL}
APP_TIMEZONE=America/Jamaica
APP_LOCALE=en
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=${APP_DB_HOST}
DB_PORT=${APP_DB_PORT}
DB_DATABASE=${APP_DB_NAME}
DB_USERNAME=${APP_DB_USERNAME}
DB_PASSWORD=${APP_DB_PASSWORD}
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
APP_ENV=development
APP_URL=http://localhost
APP_DEBUG=true
APP_DB_PORT=3306
APP_DB_HOST=db
APP_DB_NAME=laravel
APP_DB_USERNAME=laravel
APP_DB_PASSWORD=laravelpass
LARAVEL_APP=1
COMPOSER_UPDATE_ON_BUILD=1
COMPOSER_MEMORY_LIMIT=-1
version: '3.8'
services:
web:
container_name: laraveltask_app
depends_on:
- db
image: jamaicandevelopers/laravel-nginx-apline:latest
ports:
- '18121:80'
restart: unless-stopped
volumes:
- './:/var/www'
env_file:
- .env_file
networks:
- laravelnet
db:
image: mysql:5.7
volumes:
- laraveldb:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravelpass
networks:
- laravelnet
phpmyadmin:
container_name: laraveltask_phpmyadmin
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8772:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: rootpass
networks:
- laravelnet
networks:
laravelnet:
volumes:
laraveldb:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment