-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
33 lines (33 loc) · 978 Bytes
/
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
services:
### PHP & Apache ##############################################
php-apache:
build: ./php-apache
container_name: php-apache
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- ./workspace:/var/www/html
### MySQL ##############################################
mysql:
image: mysql:8.3
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: password
TZ: Asia/Tokyo
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
ports:
- 3306:3306
volumes:
- ./db/init:/docker-entrypoint-initdb.d
- ./db/data:/var/lib/mysql
- ./db/slow-query.log:/var/log/mysql/slow-query.log
- ./db/my.cnf:/etc/mysql/my.cnf
### MailPit ##############################################
mailpit:
container_name: mailpit
image: axllent/mailpit:latest
ports:
- "1025:1025"
- "8025:8025"