Skip to content

Instantly share code, notes, and snippets.

@dura0ok
Created March 16, 2019 10:50
Show Gist options
  • Save dura0ok/8e913bc418553875b0727dc032f4ab58 to your computer and use it in GitHub Desktop.
Save dura0ok/8e913bc418553875b0727dc032f4ab58 to your computer and use it in GitHub Desktop.
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=core_production
DB_USERNAME=root
DB_PASSWORD=123
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mail.ru
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=X]Q4oE6aeolK
MAIL_ENCRYPTION=ssl
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}"
Recreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db ...
Recreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discouRecreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db ... error
ERROR: for d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db Cannot create container for service mysql: invalid volume specification: 'ab69d61305e7892ba147783e2240e6158ba18dc93871c52ced2f9f89e85c0673:dbdata:rw': invalid mount config for type "volume": invalid mount path: 'dbdata' mount path must be absolute
ERROR: for mysql Cannot create container for service mysql: invalid volume specification: 'ab69d61305e7892ba147783e2240e6158ba18dc93871c52ced2f9f89e85c0673:dbdata:rw': invalid mount config for type "volume": invalid mount path: 'dbdata' mount path must be absolute
ERROR: Encountered errors while bringing up the project.
stepan7@deb:~/work/discounts$ clear
stepan7@deb:~/work/discounts$ docker-compose up
Recreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db ...
Recreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d69758Recreating d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db ... error
ERROR: for d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_d697584f0244_discounts-db Cannot create container for service mysql: invalid volume specification: 'ab69d61305e7892ba147783e2240e6158ba18dc93871c52ced2f9f89e85c0673:dbdata:rw': invalid mount config for type "volume": invalid mount path: 'dbdata' mount path must be absolute
ERROR: for mysql Cannot create container for service mysql: invalid volume specification: 'ab69d61305e7892ba147783e2240e6158ba18dc93871c52ced2f9f89e85c0673:dbdata:rw': invalid mount config for type "volume": invalid mount path: 'dbdata' mount path must be absolute
ERROR: Encountered errors while bringing up the project.
version: "3"
services:
app:
container_name: "discounts-app"
build:
context: ./
volumes:
- ./:/var/www
- ./000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./logs:/var/log/apache2
ports:
- 8080:80
working_dir: /var/www
depends_on:
- mysql
mysql:
container_name: "discounts-db"
image: mysql:5.7
volumes:
- dbdata
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: core_production
MYSQL_USER: root
MYSQL_PASSWORD: 123
ports:
- 33306:3306
volumes:
dbdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment