-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.39 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
# networks
networks:
# internal network
internal:
driver: bridge
# volumes
volumes:
# MySQL data volume
samurai-mysql_data:
driver: local
# services
services:
# database
samurai-mysql:
image: mysql:5.7
container_name: samurai-mysql
networks:
- internal
working_dir: /var/www/app
volumes:
- samurai-mysql_data:/var/lib/mysql
- .:/var/www/app
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=database
- MYSQL_USER=user
- MYSQL_PASSWORD=password
ports:
- 3306:3306
# api
samurai-nginx:
image: webdevops/php-nginx-dev:8.0
container_name: samurai-nginx
networks:
- internal
working_dir: /var/www/app
volumes:
- .:/var/www/app
depends_on:
- samurai-mysql
environment:
- WEB_DOCUMENT_ROOT=/var/www/app/public
- PHP_DEBUGGER="xdebug"
# - PHP_IDE_CONFIG="serverName=_"
- XDEBUG_REMOTE_AUTOSTART=On
- XDEBUG_REMOTE_CONNECT_BACK=Off
- XDEBUG_REMOTE_HOST=host.docker.internal
- XDEBUG_REMOTE_PORT=9090
- XDEBUG_PROFILER_ENABLE=Off
- PHP_DATE_TIMEZONE=UTC
- PHP_DISPLAY_ERRORS=0
- WEB_DOCUMENT_INDEX=index.php
- PHP_MEMORY_LIMIT=2048M
- PHP_MAX_EXECUTION_TIME=86400
- PHP_POST_MAX_SIZE=500M
- PHP_UPLOAD_MAX_FILESIZE=500M
expose:
- 9090
ports:
- 8080:80