-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 982 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
version: "3"
services:
app:
build: .
container_name: mondegc_app
ports:
- "80:80"
tty: true
volumes:
- ../:/workspace:cached
environment:
APP_ENV: local
PHP_EXTENSION_XDEBUG: 1
PHP_EXTENSION_MYSQL: 1
PHP_EXTENSION_PDO_MYSQL: 1
APACHE_DOCUMENT_ROOT: /workspace/public
mysql:
image: mysql:8.0
container_name: mondegc_mysql
ports:
- "3306:3306"
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/entrypoint:/docker-entrypoint-initdb.d
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --sql-mode=IGNORE_SPACE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
environment:
MYSQL_ROOT_PASSWORD: root
mailhog:
image: mailhog/mailhog
container_name: mondegc_mailhog
logging:
driver: "none"
ports:
- "8025:8025"