SHARE
TWEET

Untitled

a guest Feb 16th, 2019 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DB_CONNECTION=mysql
  2. DB_HOST=127.0.0.1
  3. DB_PORT=3306
  4. DB_DATABASE=test
  5. DB_USERNAME=root
  6. DB_PASSWORD=root
  7.    
  8. version: '3'
  9. services:
  10.   api:
  11.     build:
  12.       context: .
  13.       dockerfile: .docker/Dockerfile
  14.     image: laravel-docker
  15.     ports:
  16.       - 8080:80
  17.     depends_on:
  18.       - mysqldb
  19.     volumes:
  20.       - .:/srv/app
  21.     # container_name:
  22.   mysqldb:
  23.     image: mysql:5.7
  24.     container_name: mysqldb
  25.     command: mysqld --user=root --verbose
  26.     volumes:
  27.        - ./schemadump.sql:/docker-entrypoint-initdb.d/schemadump.sql
  28.     ports:
  29.       - 3306:3306
  30.     environment:
  31.       MYSQL_DATABASE: test
  32.       MYSQL_USER: test
  33.       MYSQL_PASSWORD: test
  34.       MYSQL_ROOT_PASSWORD: root
  35.       MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top