-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.58 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
services:
wordpress:
image: wordpress:php8.2
restart: always
ports:
- 80:80
hostname: localhost.test
environment:
WP_CLI_ALLOW_ROOT: 1
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
WORDPRESS_DEBUG: "true"
WORDPRESS_CONFIG_EXTRA: |
/**#@+
* SMTP Settings
*/
define( 'SMTP_ENABLED', getenv_docker( 'SMTP_ENABLED', 1 ) );
define( 'SMTP_HOST', getenv_docker( 'SMTP_HOST', 'smtp' ) );
define( 'SMTP_AUTH', getenv_docker( 'SMTP_AUTH', false ) );
define( 'SMTP_PORT', getenv_docker('SMTP_PORT', 1025 ) );
define( 'SMTP_SECURE', getenv_docker( 'SMTP_SECURE', false ) );
/**#@+
* JWT Settings
*/
define( 'JWT_AUTH_SECRET_KEY', getenv_docker('JWT_AUTH_SECRET_KEY', '') );
volumes:
- wordpress:/var/www/html
- ./themes:/var/www/html/wp-content/themes
- ./plugins:/var/www/html/wp-content/plugins
- ./mu-plugins:/var/www/html/wp-content/mu-plugins
- ./docker-uploads.ini:/usr/local/etc/php/conf.d/docker-uploads.ini
adminer:
image: adminer
restart: always
ports:
- 8081:8080
db:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
smtp:
image: haravich/fake-smtp-server
restart: always
ports:
- 1080:1080
volumes:
wordpress:
db: