-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (52 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
64 lines (52 loc) · 1.26 KB
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
62
63
64
services:
wordpress:
image: wordpress:php8.2
restart: always
ports:
- ${WP_PORT}:80
hostname: ${WP_HOST}
environment:
WP_CLI_ALLOW_ROOT: 1
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
WORDPRESS_DEBUG: ${WP_DEBUG}
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
volumes:
- type: volume
source: wordpress
target: /var/www/html
- type: bind
source: ./wp-content
target: /var/www/html/wp-content
- type: bind
source: ./confs/php-uploads.ini
target: /usr/local/etc/php/conf.d/zz-uploads.ini
db:
image: mysql:8
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- type: volume
source: db
target: /var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- ${ADMINER_PORT}:8080
smtp:
image: haravich/fake-smtp-server
restart: always
ports:
- ${SMTP_HTTP_PORT}:1080
volumes:
wordpress:
db: