-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1009 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
version: '3'
services:
wordpress:
image: wordpress:php8.0
depends_on:
- mysql
links:
- mysql
ports:
- 8000:80
restart: always
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: awps-app
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define('FS_METHOD', 'direct');
define('SCRIPT_DEBUG', true);
volumes:
- "./src/:/var/www/html/wp-content/plugins/current-plugin-development"
- "./wordpress/:/var/www/html"
- "./server/log/:/var/log"
mysql:
image: mysql:5.7
restart: always
ports:
- 3306:3306
volumes:
- "./.srv/database:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: awps-app
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui