Skip to content

Instantly share code, notes, and snippets.

@mabuak
Created October 26, 2018 02:36
Show Gist options
  • Save mabuak/711ec0527766746d66e87033a912bce8 to your computer and use it in GitHub Desktop.
Save mabuak/711ec0527766746d66e87033a912bce8 to your computer and use it in GitHub Desktop.
docker-compose-laravel
version: "2"
services:
web:
image: "docker-nginx-php7.1:latest"
container_name: web-lara
ports:
- "80:80"
- "443:443"
- "5300:5300"
privileged: true
volumes:
- "../:/home/projects/lara:cached"
- "./nginx.conf:/etc/nginx/conf.d"
links:
- "redis:redis-host"
- "mariadb:database-host"
mariadb:
image: "mariadb:10.3"
container_name: mariadb-lara
volumes:
- "./var/lib/mysql:/var/lib/mysql:cached"
- "/Users/DhanPris/Documents/Projects/php/laravel/orpm/mydb/:/docker-entrypoint-initdb.d:cached"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: user
MYSQL_PASSWORD: password
phpmyadmin:
image: "phpmyadmin/phpmyadmin"
container_name: pma-lara
environment:
PMA_HOST: "mariadb"
ports:
- "8080:80"
redis:
image: "redis:alpine"
container_name: "redis-lara"
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment