I have a little issue with Wordpress image, will be thankful for any help.
I have existing database, which I import with dump.
My Mysql Dockerfile listing below:
FROM mariadb:10.1.20
COPY dump/dump.sql /docker-entrypoint-initdb.d
ENV MYSQL_ROOT_PASSWORD pass
CMD ["mysqld"]
This is Wordpress Dockerfile, here I import my wp-content folder from src directory:
FROM wordpress:latest
COPY ./src /var/www/html
ENV WORDPRESS_DB_PASSWORD pass
ENV WORDPRESS_DB_NAME db
ENV WORDPRESS_DB_HOST mysql:3306
And of course docker-compose.yml file:
version: '2'
services:
mysql:
build: mysql/
restart: always
volumes:
- db_data:/var/lib/mysql
container_name: mysql
vshvetsov:
depends_on:
- mysql
build: wordpress/
ports:
- 8000:80
restart: always
container_name: wordpress
volumes:
db_data:
When I use plugin Contact Form 7 i've got an error with sending email after click button and of course don't get this message in my mailbox.
The only thing what I've found is this message:
172.18.0.1 - - [13/Jan/2017:13:52:42 +0000] "POST /const HTTP/1.1" 200 879 "http://localhost:8000/contacts" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36"
sh: 1: -t: not found
I've tried to install sendmail, but it still didn't help.
Thank you all for help.
I saw this issue, but it's not fixed at this moment.