-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.yml
63 lines (59 loc) · 1.78 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
62
63
version: '3.9'
services:
mysql:
image: mariadb:10.10.2-jammy
volumes:
- wp_db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
cli:
image: bozdoz/wordpress-initialize:2.9-php8.3
depends_on:
- mysql
volumes:
- wordpress:/var/www/html
- .:/var/www/html/wp-content/plugins/leaflet-map
- ./docker-initialize.sh:/app/initialize.sh
#-------------------------------------------------
# Uncomment these along with the wordpress service
# to debug themes and plugins
#-------------------------------------------------
- ./themes:/var/www/html/wp-content/themes
# - ./plugins:/var/www/html/wp-content/plugins
environment:
WP_PLUGINS: leaflet-map
WORDPRESS_PORT: ${WP_PORT:-1234}
WP_PORT: ${WP_PORT:-1234}
WP_URL: ${WP_URL:-localhost:1234}
WP_USER: admin
WP_PASSWORD: password
WP_THEME: twentynineteen
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
wordpress:
image: wordpress:6.4-php8.3-apache
depends_on:
- cli
volumes:
- wordpress:/var/www/html
- .:/var/www/html/wp-content/plugins/leaflet-map
#-------------------------------------------------
# Uncomment these along with the cli service
# to debug themes and plugins
#-------------------------------------------------
- ./themes:/var/www/html/wp-content/themes
# - ./plugins:/var/www/html/wp-content/plugins
ports:
- ${WP_PORT:-1234}:80
restart: always
environment:
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DEBUG: 1
volumes:
wp_db:
wordpress: