Skip to content

Commit 4cc0469

Browse files
committed
Disabling SSL on cli container
1 parent 9506ea4 commit 4cc0469

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ services:
109109
WP_CONFIG_PATH: /var/www/wp-config.php
110110

111111
volumes:
112-
- ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
113112
- ./:/var/www
113+
- ./tools/local-env/ssl.cnf:/root/.my.cnf:ro
114114

115115
# Keeps the service alive.
116116
command: 'sleep infinity'

tools/local-env/ssl.cnf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[client]
2+
ssl-mode=DISABLED
3+
4+
# for MariaDB client compatibility
5+
[mariadb]
6+
ssl=0
7+
8+
# cover specific client tools that WP-CLI may call
9+
[mysql]
10+
ssl-mode=DISABLED
11+
[mysqladmin]
12+
ssl-mode=DISABLED
13+
[mysqldump]
14+
ssl-mode=DISABLED

0 commit comments

Comments
 (0)