-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
53 lines (51 loc) · 1.4 KB
/
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
services:
database:
image: mysql:8.4.2
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
- MYSQL_DATABASE=website
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --sql-mode=
- --disable-log-bin
ports:
- 3306:3306
volumes:
- ./database/src:/var/lib/mysql
restart: always
mail:
image: rnwood/smtp4dev:3.6.1
command: --smtpport 25 --db /smtp4dev/mails.db --messagestokeep 1000 --sessionstokeep 1000
ports:
- 81:80
volumes:
- ./mail/src:/smtp4dev
restart: always
website:
build:
context: ./website
dockerfile: ./docker.dev/Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- WORDPRESS_DB_HOST=database
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=
- WORDPRESS_DB_NAME=website
- WORDPRESS_DB_CHARSET=utf8mb4
- WORDPRESS_DEBUG=1
- DEBUG_HOST=host.docker.internal
- DEBUG_PORT=9000
- DEBUG_KEY=xdebug
volumes:
- ./website/src:/var/www/html
- ./website/ssl:/ssl
- ./website/docker.dev/var/www/cgi-bin:/var/www/cgi-bin:ro
- ./website/docker.dev/var/www/system:/var/www/system:ro
- ./website/docker.dev/usr/local/etc/php/conf.d/user.ini:/usr/local/etc/php/conf.d/user.ini:ro
ports:
- 80:80
- 443:443
restart: always