Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- web:
- build:
- context: ./
- dockerfile: web.docker
- volumes:
- - ./:/var/www
- ports:
- - "8080:80"
- links:
- - app
- app:
- build:
- context: ./
- dockerfile: app.docker
- volumes:
- - ./:/var/www
- links:
- - database
- database:
- image: mysql:5.7
- environment:
- MYSQL_ROOT_PASSWORD: secret
- MYSQL_DATABASE: homestead
- ports:
- - "33061:3306"
- FROM nginx:1.10
- ADD ./vhost.conf /etc/nginx/conf.d/default.conf
- WORKDIR /var/www
- FROM php:7-fpm
- RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client
- && docker-php-ext-install mcrypt pdo_mysql
- WORKDIR /var/www
- $ docker exec -it compfixmanager_app_1 bash
- root@a42628a029d5:/var/www# php artisan migrate
- [IlluminateDatabaseQueryException]
- SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.t
- ables where table_schema = homestead and table_name = migrations)
- [DoctrineDBALDriverPDOException]
- SQLSTATE[HY000] [2002] Connection refused
- [PDOException]
- SQLSTATE[HY000] [2002] Connection refused
- APP_ENV=local
- APP_KEY=base64:XT/VwqoBB5yrjIShBMV7W4FRkkZvyyV9Y2oj9aW3yos=
- APP_DEBUG=true
- APP_LOG_LEVEL=debug
- APP_URL=http://localhost
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=homestead
- DB_USERNAME=root
- DB_PASSWORD=secret
- BROADCAST_DRIVER=log
- CACHE_DRIVER=file
- SESSION_DRIVER=file
- QUEUE_DRIVER=sync
- REDIS_HOST=127.0.0.1
- REDIS_PASSWORD=null
- REDIS_PORT=6379
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.mailtrap.io
- MAIL_PORT=2525
- MAIL_USERNAME=null
- MAIL_PASSWORD=null
- MAIL_ENCRYPTION=null
- PUSHER_APP_ID=
- PUSHER_APP_KEY=
- PUSHER_APP_SECRET=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement