-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (47 loc) · 1.38 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
services:
wordpress:
image: wordpress:php8.1
ports:
- '127.0.0.11:80:80'
volumes:
- 'wordpress:/var/www/html'
- './plugins/jedi-plugins:/var/www/html/wp-content/plugins/jedi-plugins'
- './themes/jediholonet:/var/www/html/wp-content/themes/jediholonet'
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER=jediholo
- WORDPRESS_DB_PASSWORD=jediholo
- WORDPRESS_DB_NAME=jedi-wordpress
- WORDPRESS_CONFIG_EXTRA=define('WP_REDIS_HOST','redis');
cli:
image: wordpress:cli-php8.1
user: '33:33'
volumes:
- 'wordpress:/var/www/html'
- './plugins/jedi-plugins:/var/www/html/wp-content/plugins/jedi-plugins'
- './themes/jediholonet:/var/www/html/wp-content/themes/jediholonet'
- './wp-setup.sh:/usr/local/bin/wp-setup.sh'
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER=jediholo
- WORDPRESS_DB_PASSWORD=jediholo
- WORDPRESS_DB_NAME=jedi-wordpress
- WORDPRESS_CONFIG_EXTRA=define('WP_REDIS_HOST','redis');
profiles:
- setup
mysql:
image: mariadb:10.11
ports:
- '127.0.0.11:3306:3306'
volumes:
- 'mysql:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=jediholo
- MYSQL_USER=jediholo
- MYSQL_PASSWORD=jediholo
- MYSQL_DATABASE=jedi-wordpress
redis:
image: redis:6.2
volumes:
mysql:
wordpress: