-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 973 Bytes
/
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
services:
php:
build:
context: ./docker
dockerfile: php-apache.Dockerfile
ports:
- ${APP_PORT:-8080}:80
volumes:
- ./src:/var/www/html
environment:
PHP_XDEBUG_MODE: debug,develop
PHP_XDEBUG_AUTOSTART: yes
PHP_XDEBUG_HOST: host.docker.internal
PHP_XDEBUG_PORT: 9003
PHP_XDEBUG_IDE_KEY: phpstorm
PHP_IDE_CONFIG: serverName=${PROJECT_NAME}
networks:
- laravel
extra_hosts:
- "host.docker.internal:host-gateway"
mysql:
image: mysql:8.0-debian
restart: unless-stopped
tty: true
ports:
- '${DB_FORWARD_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql_data:/var/lib/mysql'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
retries: 3
timeout: 5s
networks:
- laravel
networks:
laravel:
volumes:
mysql_data: