Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- # The Application
- app:
- image: 696759765437.dkr.ecr.us-east-1.amazonaws.com/ali-
- maison/tribe-migrate
- volumes:
- - /var/www/storage
- env_file: '.env'
- environment:
- - "DB_HOST=database"
- - "REDIS_HOST=cache"
- # The Web Server
- web:
- image: 696759765437.dkr.ecr.us-east-1.amazonaws.com/ali-maison/laravel-web
- ports:
- - 80:80
- # The Database
- database:
- image: mysql:5.6
- volumes:
- - dbdata:/var/lib/mysql
- environment:
- - "MYSQL_DATABASE=homestead"
- - "MYSQL_USER=homestead"
- - "MYSQL_PASSWORD=secret"
- - "MYSQL_ROOT_PASSWORD=secret"
- # redis
- cache:
- image: redis:3.0-alpine
- volumes:
- dbdata:
- FROM nginx:1.10
- ADD vhost.conf /etc/nginx/conf.d/default.conf
- WORKDIR /var/www
- server {
- listen 80;
- index index.php index.html;
- root /var/www/public;
- location / {
- try_files $uri /index.php?$args;
- }
- location ~ .php$ {
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass app:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- }
Add Comment
Please, Sign In to add comment