-
-
Save HyoMiYing/ac43f6f138ae5e53e610079aa5eee9d8 to your computer and use it in GitHub Desktop.
Laravel, MySQL, Nginx, Docker debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_NAME=LaravelProject | |
APP_ENV=local | |
APP_KEY=base64:M+MYThnHCBoOOxUoVbApYgTL74HfnAtEUsNfUVuBWW8= | |
APP_DEBUG=true | |
APP_URL=http://localhost:8080 | |
LOG_CHANNEL=stack | |
DB_CONNECTION=mysql | |
DB_HOST=mysql | |
DB_PORT=3306 | |
DB_DATABASE=laratest | |
DB_USERNAME=laravel | |
DB_PASSWORD=secret | |
BROADCAST_DRIVER=log | |
CACHE_DRIVER=file | |
QUEUE_CONNECTION=sync | |
SESSION_DRIVER=file | |
SESSION_LIFETIME=120 | |
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 | |
AWS_ACCESS_KEY_ID= | |
AWS_SECRET_ACCESS_KEY= | |
AWS_DEFAULT_REGION=us-east-1 | |
AWS_BUCKET= | |
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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Name": "laratestdocker_laravel", | |
"Id": "5ec33a4e8048cd0881ba40849bf2716b1fe622f8aa202562fea09ddd5df7fb52", | |
"Created": "2019-10-28T12:42:50.947128413+01:00", | |
"Scope": "local", | |
"Driver": "bridge", | |
"EnableIPv6": false, | |
"IPAM": { | |
"Driver": "default", | |
"Options": null, | |
"Config": [ | |
{ | |
"Subnet": "172.23.0.0/16", | |
"Gateway": "172.23.0.1" | |
} | |
] | |
}, | |
"Internal": false, | |
"Attachable": true, | |
"Ingress": false, | |
"ConfigFrom": { | |
"Network": "" | |
}, | |
"ConfigOnly": false, | |
"Containers": { | |
"fafa820922f5ba0bf1b1b2bf0ccfab0f910767bf451894059d1ab2a52c0940d1": { | |
"Name": "php", | |
"EndpointID": "f1fe2b4bff185f6dfdcffb5bb5c073b49a62d19a6e609814ba2836a001ee816c", | |
"MacAddress": "02:42:ac:17:00:02", | |
"IPv4Address": "172.23.0.2/16", | |
"IPv6Address": "" | |
}, | |
"fe947ee1765caf2d3e97e6957943b189b00cd95e765010493fd24116b787c15e": { | |
"Name": "nginx", | |
"EndpointID": "dc1531a9abfb6595665d19f84b06a084780ea1418eaa5f34f4e192756834a48d", | |
"MacAddress": "02:42:ac:17:00:04", | |
"IPv4Address": "172.23.0.4/16", | |
"IPv6Address": "" | |
} | |
}, | |
"Options": {}, | |
"Labels": { | |
"com.docker.compose.network": "laravel", | |
"com.docker.compose.project": "laratestdocker", | |
"com.docker.compose.version": "1.24.1" | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
networks: | |
laravel: | |
services: | |
nginx: | |
image: nginx:stable-alpine | |
container_name: nginx | |
ports: | |
- "8080:80" | |
volumes: | |
- ./src:/var/www | |
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf | |
depends_on: | |
- php | |
- mysql | |
networks: | |
- laravel | |
mysql: | |
image: mysql:5.7.22 | |
container_name: mysql | |
restart: unless-stopped | |
tty: true | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: laratest | |
MYSQL_USER: laravel | |
MYSQL_PASSWORD: secret | |
MYSQL_ROOT_PASSWORD: secret | |
SERVICE_TAGS: dev | |
SERVICE_NAME: mysql | |
networks: | |
- laravel | |
php: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
container_name: php | |
volumes: | |
- ./src:/var/www | |
ports: | |
- "9000:9000" | |
networks: | |
- laravel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker network inspect laravel doesn't show the "mysql" container (just nginx and php). Is this OK?