Skip to content

Instantly share code, notes, and snippets.

@eduardoarandah
Created May 10, 2022 16:37
Show Gist options
  • Save eduardoarandah/b464c61619c5ba479e7588acb1cb5b01 to your computer and use it in GitHub Desktop.
Save eduardoarandah/b464c61619c5ba479e7588acb1cb5b01 to your computer and use it in GitHub Desktop.
Docker laravel
version: "3.8"
volumes:
mysql57:
name: mysql57
mysql57conf:
name: mysql57conf # docker run -it -v mysql57conf:/app --rm busybox
services:
db: # docker compose exec db mysql -u root -pasdf -e "create database if not exists laravel;"
image: mysql:5.7
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: asdf
MYSQL_DATABASE: laravel
volumes:
- mysql57:/var/lib/mysql
- mysql57conf:/etc/mysql/conf.d
# GUI: http://localhost:8025
# MAIL_MAILER=smtp
# MAIL_HOST=mail
# MAIL_PORT=1025
# MAIL_USERNAME=null
# MAIL_PASSWORD=null
# MAIL_ENCRYPTION=null
# MAIL_FROM_ADDRESS=test@localhost
# MAIL_FROM_NAME="${APP_NAME}"
mail:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
redis:
image: redis:6-alpine
ports:
- 6379:6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment