-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·53 lines (46 loc) · 1.26 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.9'
services:
nginx:
image: "nginx:stable-alpine"
container_name: laravel_nginx
ports:
- "8000:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./src:/var/www/laravel
php:
build:
context: docker/php
dockerfile: php.Dockerfile
container_name: laravel_base
volumes:
- ./src:/var/www/laravel:rw
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:ro
- ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini:ro
# command: sh -c "chmod -R 755 /var/www/laravel/storage"
# chmod -R 777 /var/www/laravel/storage
# environment:
# XDEBUG_MODE: debug
# XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003
expose:
- 9003
# - 9000
# - 9001
# - 9002
mysql:
image: mysql:8
container_name: laravel_mysql
ports:
- 3306:3306
volumes:
- ./docker/mysql/data:/var/lib/mysql
environment:
- MYSQL_DATABASE=laravel_db
- MYSQL_USER=laravel
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
redis:
image: redis:alpine
container_name: laravel_redis
ports:
- 6379:6379